...Человеческий поиск в разработке...
- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/control/task.php
- Класс: BitrixTasksControlTask
- Вызов: Task::prepareAddPullEventParameters
private function prepareAddPullEventParameters(array $mergedFields): array { $lastResult = ResultManager::getLastResult($this->taskId); return [ 'TASK_ID' => $this->taskId, 'AFTER' => $mergedFields, 'TS' => time(), 'event_GUID' => $this->eventGuid, 'params' => [ 'addCommentExists' => $this->isAddedComment, ], 'taskRequireResult' => ResultManager::requireResult($this->taskId) ? "Y" : "N", 'taskHasResult' => $lastResult ? "Y" : "N", 'taskHasOpenResult' => ($lastResult && (int) $lastResult['STATUS'] === ResultTable::STATUS_OPENED) ? "Y" : "N", ]; }