TaskFieldHandler::prepareIntegration

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. TaskFieldHandler
  4. prepareIntegration
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/handler/taskfieldhandler.php
  • Класс: BitrixTasksControlHandlerTaskFieldHandler
  • Вызов: TaskFieldHandler::prepareIntegration
public function prepareIntegration(): self
{
	if ($this->taskId)
	{
		return $this;
	}

	if (!array_key_exists('IM_CHAT_ID', $this->fields))
	{
		$this->fields['IM_CHAT_ID'] = 0;
	}

	if (!array_key_exists('IM_MESSAGE_ID', $this->fields))
	{
		$this->fields['IM_MESSAGE_ID'] = 0;
	}

	$this->fields['IM_CHAT_ID'] = (int) $this->fields['IM_CHAT_ID'];
	$this->fields['IM_MESSAGE_ID'] = (int) $this->fields['IM_MESSAGE_ID'];

	return $this;
}

Добавить комментарий