• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/controller/property.php
  • Класс: BitrixSaleControllerProperty
  • Вызов: Property::validateRelations
protected function validateRelations()
{
	$relationsSettings = $this->getRelationSettings();

	foreach ($relationsSettings as $name => $input)
	{
		if (($value = $this->property['RELATIONS'][$name]) && $value != array(''))
		{
			if ($error = Manager::getError($input, $value))
				$errors [] = $input['LABEL'].': '.implode(', ', $error);
		}
		else
		{
			$relations[$name] = array();
		}
	}
}