Configurable::updateAction

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Configurable
  4. updateAction
  • Модуль: 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(),
		]
	];
}

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