Skip to content

Commit 61f9a74

Browse files
author
Alexey Yakimovich
committed
MAGETWO-70232: [GITHUB] Import customizable options adds it to another product if same SKU is filled#9457
- Fixed an issue with incorrect options saving on new created product;
1 parent 8582904 commit 61f9a74

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Catalog/Model/Product/Option/SaveHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ public function execute($entity, $arguments = [])
5858
}
5959
}
6060
if ($options) {
61-
$hasChangedSku = ($entity->getOrigData('sku') !== null && $entity->dataHasChangedFor('sku'));
62-
$this->processOptionsSaving($options, $hasChangedSku, $entity->getSku());
61+
$this->processOptionsSaving($options, $entity->dataHasChangedFor('sku'), $entity->getSku());
6362
}
6463

6564
return $entity;

0 commit comments

Comments
 (0)