Skip to content

Commit 13d27fa

Browse files
committed
ACP2E-1754: Store level URL rewrites are removed after product import
1 parent 13142cc commit 13d27fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ private function categoriesUrlRewriteGenerate(array $products): array
569569
if ((int) $storeId !== (int) $product->getStoreId()
570570
&& $this->isGlobalScope($product->getStoreId())) {
571571
$this->initializeCacheForProducts($products);
572-
$requestPath = $this->getReqPath($productId, $storeId, $product, $category);
572+
$requestPath = $this->getReqPath((int)$productId, (int)$storeId, $product, $category);
573573
}
574574
$urls[] = [
575575
$this->urlRewriteFactory->create()

0 commit comments

Comments
 (0)