G
G
Good Samaritan2018-12-06 14:59:50
1C-Bitrix
Good Samaritan, 2018-12-06 14:59:50

Why isn't the list property updated?

It's been half a day, I don't know what's going on. At me property of an element of type the list is not updated. He did this and that.

CIBlockElement::SetPropertyValueCode(54457, "COUNTRY", "a9e87dee0285639a181260dc0b3dd389"

второй способ

$ELEMENT_ID = 54447;  // код элемента
      $PROP_ARRAY=Array(
      "COUNTRY"=>"a9e87dee0285639a181260dc0b3dd389",
      );
// Установим новое значение для данного свойства данного элемента
        CIBlockElement::SetPropertyValuesEx($ELEMENT_ID, false, $PROP_ARRAY);

other fields of type string are changed, but this is not. specified the id of the list value in the array value

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2018-12-06
@djamali

The property value of the list type is not XML_ID, but ID.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question