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 32de280 commit 0da86abCopy full SHA for 0da86ab
app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php
@@ -246,7 +246,7 @@ private function getCategoryProductsUrlRewrites(
246
$productCollection = $this->productCollectionFactory->create();
247
248
$productCollection->addCategoriesFilter(['eq' => [$category->getEntityId()]])
249
- ->setStoreId($storeId)
+ ->addStoreFilter($storeId)
250
->addAttributeToSelect('name')
251
->addAttributeToSelect('visibility')
252
->addAttributeToSelect('url_key')
0 commit comments