Skip to content

Commit 8437b8a

Browse files
ENGCOM-4277: Also populate the storesCache when importing product only on storevie… #21094
- Merge Pull Request #21094 from hostep/magento2:add-support-for-permanent-redirect-to-be-created-when-product-is-imported-on-storeview-scope-and-not-on-global-scope - Merged commits: 1. 91ff1c5
2 parents 741e610 + 91ff1c5 commit 8437b8a

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)