diff --git a/app/code/Magento/Catalog/Model/Category.php b/app/code/Magento/Catalog/Model/Category.php index 9d6d7e41ff34e..773ef9d536e01 100644 --- a/app/code/Magento/Catalog/Model/Category.php +++ b/app/code/Magento/Catalog/Model/Category.php @@ -448,7 +448,9 @@ public function move($parentId, $afterCategoryId) if ($this->flatState->isFlatEnabled()) { $flatIndexer = $this->indexerRegistry->get(Indexer\Category\Flat\State::INDEXER_ID); if (!$flatIndexer->isScheduled()) { - $flatIndexer->reindexList([$this->getId(), $oldParentId, $parentId]); + $sameLevelCategories = explode(',', $this->getParentCategory()->getChildren()); + $list = array_unique(array_merge($sameLevelCategories, [$this->getId(), $oldParentId, $parentId])); + $flatIndexer->reindexList($list); } } $productIndexer = $this->indexerRegistry->get(Indexer\Category\Product::INDEXER_ID);