Skip to content

Commit 5e16bc3

Browse files
author
Oleksandr Iegorov
committed
ACP2E-470: Products Aggregate for GraphQL returning data for all stores
1 parent d984132 commit 5e16bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Indexer/Category/Product/AbstractAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ protected function fillTempCategoryTreeIndex($temporaryName)
704704

705705
foreach ($this->connection->fetchAll($select) as $category) {
706706
foreach (explode('/', $category['path']) as $parentId) {
707-
if ((int)$category['entity_id'] !== 1) {
707+
if ($parentId !== $category['entity_id']) {
708708
$values[] = [$parentId, $category['entity_id']];
709709
}
710710
}

0 commit comments

Comments
 (0)