I
I
Irek Sitdikov2016-08-04 16:54:44
1C-Bitrix
Irek Sitdikov, 2016-08-04 16:54:44

How to remove duplicates from CIBlockElement::GetList in Bitrix?

In general, the problem occurs because of the subquery in the filter:

/*** Поиск по торговым предложениям ***/
$arFilter["ID"] = CIBlockElement::SubQuery("PROPERTY_CML2_LINK",array('IBLOCK_ID'=>8,'ACTIVE'=>'Y',$aF));

I wanted to get rid of duplicates thanks to grouping, but it does not work:
$rsElements = CIBlockElement::GetList($arSort, $arFilter, Array('ID'), $arNavParams);

First of all, the question is why the grouping does not work and produces duplicates?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question