• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/config/state.php
  • Класс: Bitrix\Crm\Config\State
  • Вызов: State::handleBeforeIblockElementAdd
static function handleBeforeIblockElementAdd(array &$fields): bool
{
	if (!self::checkElementIblockId($fields))
	{
		return true;
	}

	$limit = self::checkIblockLimit((int)$fields['IBLOCK_ID']);
	if (empty($limit))
	{
		return true;
	}

	self::setProductLimitError($limit['MESSAGE']);

	return false;
}