• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/productpropertybase.php
  • Класс: BitrixCatalogControllerProductPropertyBase
  • Вызов: ProductPropertyBase::checkProperty
protected function checkProperty(int $propertyId): Result
{
	$result = new Result();
	$property = $this->getPropertyById($propertyId);
	if (!$property)
	{
		$result->addError(new Error('The specified property does not exist'));
		return $result;
	}

	if (!$this->isIblockCatalog((int)$property['IBLOCK_ID']))
	{
		$result->addError(new Error('The specified property does not belong to a product catalog'));
		return $result;
	}

	return $result;
}