• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/item/fieldimplementation/multifield.php
  • Класс: Bitrix\Crm\Item\FieldImplementation\Multifield
  • Вызов: Multifield::save
public function save(): Result
{
	$fieldName = $this->getHandledFieldNames()[0];

	if (!$this->isChanged($fieldName))
	{
		return new Result();
	}

	$storage = Container::getInstance()->getMultifieldStorage();
	$identifier = new ItemIdentifier($this->ownerEntityTypeId, $this->ownerId);

	$result = $storage->save($identifier, $this->get($fieldName));
	if ($result->isSuccess())
	{
		$this->actual = $storage->get($identifier);
		$this->current = null;
	}

	return $result;
}