- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
- Класс: \CCrmDealRestProxy
- Вызов: CCrmDealRestProxy::innerGetList
protected function innerGetList($order, $filter, $select, $navigation, &$errors)
{
if(!CCrmDeal::CheckReadPermission(0))
{
$errors[] = 'Access denied.';
return false;
}
$options = array('IS_EXTERNAL_CONTEXT' => true);
if(is_array($order))
{
if(isset($order['STAGE_ID']))
{
$order['STAGE_SORT'] = $order['STAGE_ID'];
unset($order['STAGE_ID']);
$options['FIELD_OPTIONS'] = array('ADDITIONAL_FIELDS' => array('STAGE_SORT'));
}
}
return CCrmDeal::GetListEx($order, $filter, false, $navigation, $select, $options);
}