Кстати, Stenсils тоже можно использовать для автоматического создания чек-листов по шаблонам:
'itop-stencils' => array(
'rules' => array(
array(
'name' => 'Attach checklists to work order',
'trigger_class' => 'WorkOrder',
'trigger_scope' => "SELECT WorkOrder WHERE ticket_id_finalclass_recall = 'ScheduledActivity'",
'trigger_state' => '',
'report_label' => 'A checklist has been created for the work order', // Label or dictionary entry
'templates' => "SELECT ChecklistTemplate WHERE name = :trigger->name AND status = 'active'", // A query to define how to look for the templates
'copy_class' => 'Checklist', // Class of the copied templates
'copy_actions' => array( // Series of actions to preset the object in the creation form
'set(obj_key,$trigger->id$)',
'set(obj_class,WorkOrder)',
'call_method(FillFromTemplate)', // A special method in knowitop-checklist module
),
'retrofit' => array( // Series of actions to retrofit some information from the created object to the source object
'set(log,A checklist has been created for the work order)',
),
),
),
),
Здравствуйте, установили даный модуль на iTop версия 3.0.0-beta4-8025, чек лист создается коректно но при попытке добавить из шаблона ничего не происходит и в логах itop появляется ошибка лог прикрепляю ниже. Не подскажете что с этим можно сделать?
2021-09-22 14:15:29 | Error | 1 | Uncaught Error: Object of class Combodo\iTop\Application\UI\Base\Layout\UIContentBlock could not be converted to string in …/env-production/knowitop-checklist/a
Stack trace: #0 {main}
thrown | IssueLog
array (
‘type’ => 1,
‘message’ => ‘Uncaught Error: Object of class Combodo\iTop\Application\UI\Base\Layout\UIContentBlock could not be converted to string in …/env-production/knowitop-checklist/ajax.php:146
Stack trace: #0 {main}
thrown’,
‘file’ => ‘…/env-production/knowitop-checklist/ajax.php’,
‘line’ => 146,
)