Skip to content

Commit 7ee8e09

Browse files
Barny ShergoldBarny Shergold
Barny Shergold
authored and
Barny Shergold
committed
Updated code as per failed test
1 parent 0097625 commit 7ee8e09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,11 @@ public function isCategoryProperForGenerating(Category $category, $storeId)
237237
}
238238

239239
/**
240-
* Checks if URL key has been changed for provided category and returns reloaded category in other case - returns provided category.
240+
* Check if URL key has been changed
241241
*
242+
* Checks if URL key has been changed for provided category and returns reloaded category,
243+
* in other case - returns provided category.
244+
*
242245
* Category should be loaded per appropriate store at all times. This is because whilst the URL key on the
243246
* category in focus might be unchanged, parent category URL keys might be. If the category store ID
244247
* and passed store ID are the same then return current category as it is correct but may have changed in memory

0 commit comments

Comments
 (0)