• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/handler/taskfieldhandler.php
  • Класс: BitrixTasksControlHandlerTaskFieldHandler
  • Вызов: TaskFieldHandler::prepareDependencies
public function prepareDependencies(): self
{
	if (
		$this->taskId
		&& is_array($this->fields['DEPENDS_ON'] ?? null)
		&& in_array($this->taskId, $this->fields['DEPENDS_ON'])
	)
	{
		throw new TaskFieldValidateException(Loc::getMessage('TASKS_DEPENDS_ON_SELF'));
	}

	return $this;
}