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(
6767 $ categoryStoreId = $ category ->getStoreId ();
6868 foreach ($ category ->getStoreIds () as $ storeId ) {
6969 $ 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 );
7775 }
7876 $ category ->setStoreId ($ categoryStoreId );
7977
You can’t perform that action at this time.
0 commit comments