• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/controller/action/entity/userconsentrequestaction.php
  • Класс: BitrixSaleControllerActionEntityUserConsentRequestAction
  • Вызов: UserConsentRequestAction::checkParams
private function checkParams(array $fields): SaleResult
{
	$result = new SaleResult();

	if (empty($fields['ID']) || (int)$fields['ID'] <= 0)
	{
		$result->addError(
			new MainError(
				'id not found',
				SaleControllerErrorEnumeration::USER_CONSENT_REQUEST_ACTION_ID_NOT_FOUND
			)
		);
	}

	return $result;
}