DealEntity::onFieldChange

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. DealEntity
  4. onFieldChange
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/recurring/entity/item/dealentity.php
  • Класс: Bitrix\Crm\Recurring\Entity\Item\DealEntity
  • Вызов: DealEntity::onFieldChange
protected function onFieldChange($name)
{
	if ($name === 'START_DATE')
	{
		if (!($this->recurringFields['START_DATE'] instanceof Date))
		{
			$startDateString = null;
			if (CheckDateTime($this->recurringFields['START_DATE']))
			{
				$startDateString = $this->recurringFields['START_DATE'];
			}
			$startDate = new Date($startDateString);
			$this->setFieldNoDemand('START_DATE', $startDate);
		}
	}

	parent::onFieldChange($name);
}

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