Skip to content

Commit 413120a

Browse files
committed
MAGETWO-95539: [2.3] Moving Category generate duplicate url_rewrite when 4th level category exist and is translated
- Fixed url rewrites regeneration after category moving
1 parent c60761e commit 413120a

File tree

2 files changed

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

2 files changed

+1
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ public function afterChangeParent(
6464
Category $newParent,
6565
$afterCategoryId
6666
) {
67-
6867
$categoryStoreId = $category->getStoreId();
6968
foreach ($category->getStoreIds() as $storeId) {
7069
$category->setStoreId($storeId);

app/code/Magento/CatalogUrlRewrite/Test/Unit/Model/Category/Plugin/Category/MoveTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function setUp()
6969
->getMock();
7070
$this->categoryMock = $this->getMockBuilder(Category::class)
7171
->disableOriginalConstructor()
72-
->setMethods(['getResource', 'setUrlPath', 'getStoreIds'])
72+
->setMethods(['getResource', 'setUrlPath', 'getStoreIds', 'getStoreId', 'setStoreId'])
7373
->getMock();
7474
$this->plugin = $this->objectManager->getObject(
7575
CategoryMovePlugin::class,

0 commit comments

Comments
 (0)