• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/store.php
  • Класс: BitrixCatalogControllerStore
  • Вызов: Store::updateAction
public function updateAction(int $id, array $fields)
{
	$view = $this->getViewManager()
		->getView($this);
	$fields = $view->internalizeFieldsUpdate($fields);

	$res = $this->update($id, $fields);
	if (!is_null($res) && $res->isSuccess())
	{
		$result = $res->getId();
	}
	else
	{
		$result = [
			'error' => 'ERROR_UPDATE',
			'error_description' => implode(
				'. ',
				$this->getErrors()
			),
		];
	}

	return $result;
}