-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
When creating a new product, if by mistake I set the SKU of an already existing product, and import customizable options from this one, these options will be imported to the first product with same SKU, althougth an error shows that same SKU is existing.
Preconditions
Magento 2.1.5
Steps to reproduce
- Create a simple product with customizable options (i.e SKU : product-test)
- Create a product and set same SKU
- Import customizable options from the first product
- Save
Expected result
- Information message indicates that SKU has been changed (should explain it is already in use)
- Confirmation message indicates that Product is saved
- Customizables options should be imported in this new product
Actual result
- Information message indicates that SKU has been changed
- Confirmation message indicates that Product is saved
- Imported customizable options are saved to the already existing product that had SKU set first
First Product with sku 'product-test', and 2 customizable options :
Create a new product and by mistake set same sku 'product-test', then on Customizable Options click on Import Options :
Select first product, and click Import :
Everything looks fine, click on Save button :
Oops, by mistake I set an already existing SKU, the system changes it, no pb. I can leave happy.
Wait NO! Look at the bottom of the product page, check the new custom options, nothing!
Return to first product, used to import Customizable options, and here it is duplicated...