30 $order = empty($order) ? [
'IBLOCK_ID' =>
'ASC'] : $order;
33 'PRODUCT_PROPERTY_SECTIONS',
34 $this->getList($select, $filter, $order, $pageNavigation),
60 public function setAction(
int $propertyId, array $fields): ?array
63 if (!$checkPropertyResult->isSuccess())
65 $this->addErrors($checkPropertyResult->getErrors());
70 $fields[
'IBLOCK_ID'] = $property[
'IBLOCK_ID'];
72 \CIBlockSectionPropertyLink::Set(self::BLANK_SECTION, $propertyId, $fields);
74 $result = $this->
get($propertyId);
77 $this->addError(
new Error(
'Error setting section properties'));
81 return [
'PRODUCT_PROPERTY_SECTION' => $this->
get($propertyId)];