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
121121 * Clean obsolete entries
122122 *
123123 * @param Category $category
124+ * @param int $categoryStoreId
124125 * @return void
125126 */
126127 private function removeObsoleteUrlPathEntries (Category $ category , $ categoryStoreId ): void
@@ -132,7 +133,7 @@ private function removeObsoleteUrlPathEntries(Category $category, $categoryStore
132133 $ path = $ category ->getData ('path ' );
133134 if ($ origPath != null && $ path != null && $ origPath != $ path ) {
134135 $ category ->unsUrlPath ();
135- if ( $ category ->getStoreId () !== $ categoryStoreId ) {
136+ if ( $ category ->getStoreId () !== $ categoryStoreId ) {
136137 $ category ->setStoreId ($ categoryStoreId );
137138 $ category ->setUrlPath ($ this ->categoryUrlPathGenerator ->getUrlPath ($ category ));
138139 }
You can’t perform that action at this time.
0 commit comments