We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d984132 commit 5e16bc3Copy full SHA for 5e16bc3
app/code/Magento/Catalog/Model/Indexer/Category/Product/AbstractAction.php
@@ -704,7 +704,7 @@ protected function fillTempCategoryTreeIndex($temporaryName)
704
705
foreach ($this->connection->fetchAll($select) as $category) {
706
foreach (explode('/', $category['path']) as $parentId) {
707
- if ((int)$category['entity_id'] !== 1) {
+ if ($parentId !== $category['entity_id']) {
708
$values[] = [$parentId, $category['entity_id']];
709
}
710
0 commit comments