Skip to content

Commit 60b577e

Browse files
committed
Use getCategoryStoreIds method
1 parent 8fe7c88 commit 60b577e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function generateProductUrlRewrites(Category $category): array
139139
$this->isSkippedProduct[$category->getEntityId()] = [];
140140
$saveRewriteHistory = (bool)$category->getData('save_rewrites_history');
141141

142-
foreach ($category->getStoreIds() as $storeId) {
142+
foreach ($this->getCategoryStoreIds($category) as $storeId) {
143143
if ($category->getChangedProductIds()) {
144144
$this->generateChangedProductUrls($mergeDataProvider, $category, (int)$storeId, $saveRewriteHistory);
145145
} else {

0 commit comments

Comments
 (0)