• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/helpers/order/builder/orderbuilder.php
  • Класс: BitrixSaleHelpersOrderBuilderOrderBuilder
  • Вызов: OrderBuilder::setRelatedProperties
public function setRelatedProperties()
{
	if (empty($this->formData["PROPERTIES"]))
	{
		return $this;
	}

	$propCollection = $this->order->getPropertyCollection();

	/** @var PropertyValue $propertyValue */
	foreach ($propCollection as $propertyValue)
	{
		if (!$propertyValue->getRelations())
		{
			continue;
		}

		$post = InternalsInputFile::getPostWithFiles($this->formData, $this->settingsContainer->getItemValue('propsFiles'));

		$res = $propertyValue->setValueFromPost($post);
		if (!$res->isSuccess())
		{
			$this->getErrorsContainer()->addErrors($res->getErrors());
		}
	}

	return $this;
}