- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/checklist/task/taskchecklistfacade.php
- Класс: BitrixTasksCheckListTaskTaskCheckListFacade
- Вызов: TaskCheckListFacade::doUpdatePostActions
static function doUpdatePostActions($taskId, $userId, $oldCheckList, $newCheckList): void
{
$checkListLog = new TaskCheckListLog($taskId, $userId, $oldCheckList, $newCheckList);
if (static::getDeferredActionsMode())
{
static::$collectedData[] = $checkListLog->getActionFields(
TaskCheckListLog::ACTION_UPDATE,
[['OLD' => $oldCheckList, 'NEW' => $newCheckList]]
);
}
else
{
$checkListLog->logUpdatingChanges();
SearchIndex::setTaskSearchIndex($taskId);
if ($newCheckList->getSkipMembers())
{
return;
}
$members = $newCheckList->getFields()['MEMBERS'];
if (is_array($members) && !empty($members))
{
$task = new CTaskItem($taskId, $userId);
static::addMembersToTask($task, $members);
}
}
}