Skip to content

Commit 3f79b80

Browse files
committed
11532: Duplicate Simple Product Throws Error: Undefined offset: 0 in SaveHandler.php on line 122
1 parent 17aa13c commit 3f79b80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Catalog/Model/Category/Link/SaveHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ private function mergeCategoryLinks($newCategoryPositions, $oldCategoryPositions
119119

120120
if ($key === false) {
121121
$result[] = $newCategoryPosition;
122-
} elseif (
123-
isset($oldCategoryPositions[$key])
122+
} elseif (isset($oldCategoryPositions[$key])
124123
&& $oldCategoryPositions[$key]['position'] != $newCategoryPosition['position']
125124
) {
126125
$result[] = $newCategoryPositions[$key];

0 commit comments

Comments
 (0)