Skip to content

Commit 832d1ea

Browse files
committed
ACP2E-2964: [Cloud] URL update only for store_id=0
1 parent fb116a3 commit 832d1ea

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Category

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Category/Move.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)