...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/controller/activity/configurable.php
- Класс: Bitrix\Crm\Controller\Activity\Configurable
- Вызов: Configurable::updateAction
public function updateAction(\CRestServer $server, int $id, ?array $fields = null, ?array $layout = null) { $activity = ConfigurableRestApp::load($id); if (!$activity) { $this->addError(ErrorCode::getNotFoundError()); return null; } $this->saveActivity($activity, $fields, $layout, $server); if (count($this->getErrors())) { return null; } return [ 'activity' => [ 'id' => $activity->getId(), ] ]; }