BaseMessage::checkFields

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. BaseMessage
  4. checkFields
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/basemessage.php
  • Класс: Bitrix\Crm\Activity\Provider\BaseMessage
  • Вызов: BaseMessage::checkFields
static function checkFields($action, &$fields, $id, $params = null)
{
	$result = new Result();

	if ($action === 'UPDATE' && ($fields['COMPLETED'] ?? 'Y') === 'N')
	{
		$result->addError(new Error(Loc::getMessage('CRM_ACTIVITY_PROVIDER_BASEMESSAGE_CAN_NOT_UNCOMPLETE')));
	}

	return $result;
}

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