• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/config/state.php
  • Класс: BitrixCatalogConfigState
  • Вызов: State::handlerAfterIblockElementAdd
static function handlerAfterIblockElementAdd(array &$fields): void
{
	if ($fields['RESULT'] === false)
		return;

	if (!self::checkIblockId($fields))
		return;

	$sections = $fields['IBLOCK_SECTION'] ?? null;
	MainTypeCollection::normalizeArrayValuesByInt($sections, true);
	if (empty($sections))
		return;
	self::loadIblockSections((int)$fields['IBLOCK_ID']);
	$sections = array_intersect($sections, self::$fullIblockSections);
	if (empty($sections))
		return;

	self::$elementCount = null;
}