Skip to content

Commit 91ff1c5

Browse files
committed
Also populate the storesCache when importing product only on storeview(s) level, previously the storesCache was only populated for products imported on global level. This causes problems with the correct url rewrites to be generated.
1 parent 00fb2aa commit 91ff1c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ protected function _populateForUrlGeneration($rowData)
263263
if ($this->isGlobalScope($product->getStoreId())) {
264264
$this->populateGlobalProduct($product);
265265
} else {
266+
$this->storesCache[$product->getStoreId()] = true;
266267
$this->addProductToImport($product, $product->getStoreId());
267268
}
268269
return $this;

0 commit comments

Comments
 (0)