TemplateFieldHandler::preparePriority

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. TemplateFieldHandler
  4. preparePriority
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/handler/templatefieldhandler.php
  • Класс: BitrixTasksControlHandlerTemplateFieldHandler
  • Вызов: TemplateFieldHandler::preparePriority
public function preparePriority(): self
{
	if (
		isset($this->fields["PRIORITY"])
		&& !in_array((int)$this->fields["PRIORITY"], array_values(Priority::getAll()), true)
	)
	{
		$this->fields["PRIORITY"] = Priority::AVERAGE;
	}

	return $this;
}

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