Skip to content

Commit

Permalink
Change 'INCLUDE_SUBSECTIONS' value in filter configuration
Browse files Browse the repository at this point in the history
The filter configuration in the 'hipot/iblock.section' class has been modified. Previously, it included sub-sections when determining the count of elements in a section. Now, it does not include sub-sections, as demonstrated by 'INCLUDE_SUBSECTIONS' now being set to 'N' instead of 'Y'. This change applies to both Hipot projects.
  • Loading branch information
hipot committed Jan 8, 2024
1 parent a276ed1 commit a6e8e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/components/hipot/iblock.section/class.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function executeComponent()
* Фильтр для определения, сколько элементов в секции с такими параметрами
* @var array
*/
$arElemCountFilter = ["IBLOCK_ID" => $arParams['IBLOCK_ID'], 'ACTIVE' => 'Y', 'INCLUDE_SUBSECTIONS' => 'Y'];
$arElemCountFilter = ["IBLOCK_ID" => $arParams['IBLOCK_ID'], 'ACTIVE' => 'Y', 'INCLUDE_SUBSECTIONS' => 'N'];
if (count($arParams['SELECT_COUNT_ELEM_FILTER']) > 0) {
$arElemCountFilter = array_merge($arElemCountFilter, $arParams['SELECT_COUNT_ELEM_FILTER']);
}
Expand Down

0 comments on commit a6e8e1b

Please sign in to comment.