Skip to content

Commit 08e5ab3

Browse files
author
Roman Lytvynenko
committed
MC-23252: Pagebuilder products list doesn't work with anchor category
1 parent cb93b40 commit 08e5ab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/PageBuilder/Model/Catalog/ProductTotals.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ private function updateAnchorCategoryConditions(array $condition): array
128128
return $condition;
129129
}
130130

131-
if ($category->getIsAnchor() && $category->getChildren()) {
132-
$children = explode(',', $category->getChildren());
131+
if ($category->getIsAnchor() && $category->getChildren(true)) {
132+
$children = explode(',', $category->getChildren(true));
133133

134134
$condition['operator'] = "()";
135135
$condition['value'] = array_merge([$categoryId], $children);

0 commit comments

Comments
 (0)