Skip to content

Commit

Permalink
Updated code as per failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Barny Shergold authored and Barny Shergold committed Jul 8, 2020
1 parent 0097625 commit 7ee8e09
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,11 @@ public function isCategoryProperForGenerating(Category $category, $storeId)
}

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

0 comments on commit 7ee8e09

Please sign in to comment.