D
D
Diversia2017-09-05 10:20:13
1C-Bitrix
Diversia, 2017-09-05 10:20:13

How to remove all values ​​of a multiple property?

Good people, please tell me how to delete ALL values ​​of a certain multiple property of the file type when changing the properties of an element? I try to clear the values ​​of the morePhotos property, but it doesn't work:

$PROP['type'] = 22;
$PROP['morePhotos'] = ''; // не достаточно, фото не удаляются.
$elUpdate = CIBlockElement::SetPropertyValuesEx($id, false, $PROP);

If, for example, I insert a new photo into morePhotos, then all the old ones are deleted and the new one remains. And to clear the property completely?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Diversia, 2017-09-12
@Diversia

It turned out to be more correct:

$arFile["MODULE_ID"] = "iblock";
$arFile["del"] = "Y";
$PROP['morePhotos'][id варианта] = $arFile;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question