Skip to content

Commit 540b535

Browse files
author
Maksym Aposov
committed
MAGETWO-36369: [GitHub] Unable to save product per website wise #1245
1 parent 8701a43 commit 540b535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogUrlRewrite/Model/ProductUrlPathGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function getUrlPath($product, $category = null)
7777
*/
7878
protected function _prepareProductDefaultUrlKey(\Magento\Catalog\Model\Product $product)
7979
{
80-
$storedProduct = $this->productRepository->getById($product->getId(), false, Store::DEFAULT_STORE_ID);
80+
$storedProduct = $this->productRepository->getById($product->getId());
8181
$storedUrlKey = $storedProduct->getUrlKey();
8282
return $storedUrlKey ?: $product->formatUrlKey($storedProduct->getName());
8383
}

0 commit comments

Comments
 (0)