Skip to content

Commit 3456274

Browse files
committed
MAGETWO-45113: Wrong url rewrites in catalog categories after changing url key for store view and moving category
1 parent 093891f commit 3456274

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ protected function generateForGlobalScope()
103103
*/
104104
protected function isOverrideUrlsForStore($storeId, $categoryId)
105105
{
106-
return $this->overrideStoreUrls
107-
|| !$this->storeViewService->doesEntityHaveOverriddenUrlKeyForStore(
106+
return $this->overrideStoreUrls || !$this->storeViewService->doesEntityHaveOverriddenUrlKeyForStore(
108107
$storeId,
109108
$categoryId,
110109
Category::ENTITY

0 commit comments

Comments
 (0)