Closed
Description
Steps to reproduce
- Install Magento 2.1
- Go to admin -> Stores -> Configuration -> Sales -> Google API section
- Change the configuration Enable Content Experiments to "Yes"
- Save a configurable product and its child product consecutively.
Expected result
- We can save the product successfully with any number of times.
Actual result
- Product is not saving properly.
- Gives an error:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0-1383-product' for key 'GOOGLEOPTIMIZER_CODE_STORE_ID_ENTITY_ID_ENTITY_TYPE', query was: UPDATE googleoptimizer_code
SET entity_id
= ? WHERE (code_id='50')