• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/discount/preset/selectproductpreset.php
  • Класс: BitrixSaleDiscountPresetSelectProductPreset
  • Вызов: SelectProductPreset::validateSectionsAndProductsState
protected function validateSectionsAndProductsState(State $state, ErrorCollection $errorCollection)
{
	if(!is_array($state->get('discount_section', array())))
	{
		$errorCollection[] = new Error(Loc::getMessage('SALE_BASE_PRESET_ERROR_SECTION_NON_ARRAY'));
	}

	if(!is_array($state->get('discount_product', array())))
	{
		$errorCollection[] = new Error(Loc::getMessage('SALE_BASE_PRESET_ERROR_PRODUCT_NON_ARRAY'));
	}
}