Wrong Template path for custom Task Type
I add new Task Type with VTTaskType::registerTaskType
function, but when I try to select my new Task on 3d step in Workflow creation it's chosing wrong template (not value from Task templatepath)
Error in modules/Settings/Workflows/views/EditTask.php
in
$viewer->assign('TASK_TEMPLATE_PATH', $taskTypeModel->getTemplatePath());
$taskTypeModel->getTemplatePath()
always returns modules/Vtiger/Tasks/YourCustomTaskType.tpl
but should return value from Task templatepath (com_vtiger_workflow_tasktypes table)
I think TEMPLATE_PATH should be retrived like this:
$taskTypeInstance = VTTaskType::getInstanceFromTaskType($taskType);
$taskTemplateClass = $tm->retrieveTemplatePath($moduleName, $taskTypeInstance);
$viewer->assign('TASK_TEMPLATE_PATH', $taskTemplateClass);
Question is: can I add my custom template in layouts/vlayout/modules/Settings/Workflows/Tasks
during my module installation, is it accessible for Marketplace?