Skip to content

Commit

Permalink
MAGETWO-36369: [GitHub] Unable to save product per website wise #1245
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksym Aposov committed Jun 11, 2015
1 parent 8701a43 commit 540b535
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function getUrlPath($product, $category = null)
*/
protected function _prepareProductDefaultUrlKey(\Magento\Catalog\Model\Product $product)
{
$storedProduct = $this->productRepository->getById($product->getId(), false, Store::DEFAULT_STORE_ID);
$storedProduct = $this->productRepository->getById($product->getId());
$storedUrlKey = $storedProduct->getUrlKey();
return $storedUrlKey ?: $product->formatUrlKey($storedProduct->getName());
}
Expand Down

0 comments on commit 540b535

Please sign in to comment.