CCrmProductSectionRestProxy::innerUpdate

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmProductSectionRestProxy
  4. innerUpdate
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmProductSectionRestProxy
  • Вызов: CCrmProductSectionRestProxy::innerUpdate
protected function innerUpdate($ID, &$fields, &$errors, array $params = null)
{
	if(!CCrmProduct::CheckUpdatePermission($ID))
	{
		$errors[] = 'Access denied.';
		return false;
	}

	$result = CCrmProductSection::Update($ID, $fields);
	if($result !== true)
	{
		$errors[] = CCrmProductSection::GetLastError();
	}
	return $result;
}

Добавить комментарий