...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
- Класс: \CCrmRequisitePresetFieldRestProxy
- Вызов: CCrmRequisitePresetFieldRestProxy::innerGetFields
protected function innerGetFields($presetId, $id, &$errors) { $r = $this->exists($presetId, EntityPreset::Requisite); if(!is_array($r)) { $errors[] = "The Preset with ID '{$presetId}' is not found"; return false; } if(!is_array($r['SETTINGS'])) { $r['SETTINGS'] = array(); } $preset = self::getEntity(); $result = $this->getByFieldId($id, $preset->settingsGetFields($r['SETTINGS']), array( 'COUNTRY_ID' => $r['COUNTRY_ID'] )); if(empty($result)) { $errors[] = "The PresetField with ID '{$id}' is not found"; return false; } if(!EntityPreset::checkReadPermissionOwnerEntity()) { $errors[] = 'Access denied.'; return false; } return $result; }