54 $fieldsInfo = empty($fieldsInfo)? $this->
getFields():$fieldsInfo;
55 $listFieldsInfoAdd = $this->
getListFieldInfo($fieldsInfo, [
'filter'=>[
'ignoredAttributes'=>[Attributes::HIDDEN, Attributes::READONLY],
'ignoredFields'=>[
'ORDER_ID']]]);
56 $listFieldsInfoUpdate = $this->
getListFieldInfo($fieldsInfo, [
'filter'=>[
'ignoredAttributes'=>[Attributes::HIDDEN, Attributes::READONLY, Attributes::IMMUTABLE]]]);
58 if(isset($fields[
'ORDER'][
'ID']))
59 $result[
'ORDER'][
'ID'] = (int)$fields[
'ORDER'][
'ID'];
61 if(isset($fields[
'ORDER'][
'PROPERTY_VALUES']))
63 foreach ($fields[
'ORDER'][
'PROPERTY_VALUES'] as $k=>$item)
66 $this->isNewItem($item)? $listFieldsInfoAdd:$listFieldsInfoUpdate
118 $listFieldsInfoAdd = $this->
getListFieldInfo($this->
getFields(), [
'filter'=>[
'ignoredAttributes'=>[Attributes::HIDDEN, Attributes::READONLY],
'ignoredFields'=>[
'ORDER_ID']]]);
119 $listFieldsInfoUpdate = $this->
getListFieldInfo($this->
getFields(), [
'filter'=>[
'ignoredAttributes'=>[Attributes::HIDDEN, Attributes::READONLY, Attributes::IMMUTABLE]]]);
121 foreach ($fields[
'ORDER'][
'PROPERTY_VALUES'] as $k=>$item)
124 $this->isNewItem($item)? $listFieldsInfoAdd:$listFieldsInfoUpdate
127 if(!$required->isSuccess())
129 $r->addError(
new Error(
'[propertyValues]['.$k.
'] - '.implode(
', ', $required->getErrorMessages()).
'.'));