File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Category Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ private function updateUrlPathForChildren(Category $category): void
121
121
* Clean obsolete entries
122
122
*
123
123
* @param Category $category
124
+ * @param int $categoryStoreId
124
125
* @return void
125
126
*/
126
127
private function removeObsoleteUrlPathEntries (Category $ category , $ categoryStoreId ): void
@@ -132,7 +133,7 @@ private function removeObsoleteUrlPathEntries(Category $category, $categoryStore
132
133
$ path = $ category ->getData ('path ' );
133
134
if ($ origPath != null && $ path != null && $ origPath != $ path ) {
134
135
$ category ->unsUrlPath ();
135
- if ( $ category ->getStoreId () !== $ categoryStoreId ) {
136
+ if ( $ category ->getStoreId () !== $ categoryStoreId ) {
136
137
$ category ->setStoreId ($ categoryStoreId );
137
138
$ category ->setUrlPath ($ this ->categoryUrlPathGenerator ->getUrlPath ($ category ));
138
139
}
You can’t perform that action at this time.
0 commit comments