File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Category Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,11 @@ public function afterChangeParent(
67
67
$ categoryStoreId = $ category ->getStoreId ();
68
68
foreach ($ category ->getStoreIds () as $ storeId ) {
69
69
$ category ->setStoreId ($ storeId );
70
- if (!$ this ->isGlobalScope ($ storeId )) {
71
- $ this ->updateCategoryUrlKeyForStore ($ category );
72
- $ category ->unsUrlPath ();
73
- $ category ->setUrlPath ($ this ->categoryUrlPathGenerator ->getUrlPath ($ category ));
74
- $ category ->getResource ()->saveAttribute ($ category , 'url_path ' );
75
- $ this ->updateUrlPathForChildren ($ category );
76
- }
70
+ $ this ->updateCategoryUrlKeyForStore ($ category );
71
+ $ category ->unsUrlPath ();
72
+ $ category ->setUrlPath ($ this ->categoryUrlPathGenerator ->getUrlPath ($ category ));
73
+ $ category ->getResource ()->saveAttribute ($ category , 'url_path ' );
74
+ $ this ->updateUrlPathForChildren ($ category );
77
75
}
78
76
$ category ->setStoreId ($ categoryStoreId );
79
77
You can’t perform that action at this time.
0 commit comments