• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/controller/property.php
  • Класс: BitrixSaleControllerProperty
  • Вызов: Property::validateFields
protected function validateFields()
{
	foreach ($this->propertySettings as $name => $input)
	{
		if ($error = Manager::getError($input, $this->property[$name]))
		{
			if ($input['MULTIPLE'] && $input['MULTIPLE'] === 'Y')
			{
				$errorString = '';

				foreach ($error as $k => $v)
				{
					$errorString .= ' '.(++$k).': '.implode(', ', $v).';';
				}

				$this->errors[] = $input['LABEL'].$errorString;
			}
			else
			{
				$this->errors[] = $input['LABEL'].': '.implode(', ', $error);
			}
		}
	}
}