/** * @param array $fields Element fields. * @return bool */ public static function onBeforeUpdate(&$fields) { if ($settings = InterfaceHelper::getIblockSettings($fields['IBLOCK_ID'])) { if (static::checkDoubleElement($fields, $settings, static::ACTION_UPDATE)) { return false; } } }
/** * @param array $fields Section fields. * @return bool */ public static function onBeforeUpdate(&$fields) { if ($settings = InterfaceHelper::getIblockSettings($fields['IBLOCK_ID'])) { if (static::checkDoubleSection($fields, $settings)) { return false; } } }