• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/group.php
  • Класс: BitrixSaleLocationGroupTable
  • Вызов: GroupTable::update
static function update($primary, array $data)
{
	$primary = Assert::expectIntegerPositive($primary, '$primary');

	// first update parent, and if it succeed, do updates of the connected data

	if(isset($data['NAME']))
	{
		$name = $data['NAME'];
		unset($data['NAME']);
	}

	$updResult = parent::update($primary, $data);

	// update connected data
	if($updResult->isSuccess())
	{
		// names
		if(isset($name))
			NameGroupTable::updateMultipleForOwner($primary, $name);
	}

	return $updResult;
}