Skip to content

Commit c9179cd

Browse files
MAGETWO-71643: [BUGFIX] Flat Category reindexList of AllChildren if the url_key of t… #10557
2 parents 42a4cbb + 85000e6 commit c9179cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/Catalog/Model/Category.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,9 @@ public function reindex()
10931093
$flatIndexer = $this->indexerRegistry->get(Indexer\Category\Flat\State::INDEXER_ID);
10941094
if (!$flatIndexer->isScheduled()) {
10951095
$flatIndexer->reindexRow($this->getId());
1096+
if ($this->dataHasChangedFor('url_key')) {
1097+
$flatIndexer->reindexList(explode(',', $this->getAllChildren()));
1098+
}
10961099
}
10971100
}
10981101
$productIndexer = $this->indexerRegistry->get(Indexer\Category\Product::INDEXER_ID);

0 commit comments

Comments
 (0)