J
J
jorshjorsh952018-07-24 15:03:14
1C-Bitrix
jorshjorsh95, 2018-07-24 15:03:14

Why does the filter by IBLOCK_SECTION_ID not work in GetList?

Good afternoon.
I make a selection:

CIBlockElement::GetList(array(), Array("IBLOCK_ID"=>1, 'ACTIVE' => 'Y', 'IBLOCK_SECTION_ID' => 4), false, array('nTopCount' => 1), array("ID", "IBLOCK_SECTION_ID", "IBLOCK_ID", 'PROPERTY_PRICE'));

But IBLOCK_SECTION_ID = 4 is actively ignored, selects anyway with IBLOCK_SECTION_ID = 27
Why can this be and how to deal with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Panteleev, 2018-07-24
@jorshjorsh95

In the filter, pass 'SECTION_ID' => 4, IBLOCK_SECTION_IDindicated inarOrder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question