Closed
Description
Preconditions
- Magento CE 2.2.3
- PHP 7.0.30
Steps to reproduce
- Create a new Simple product.
- Add a new Customizable Option ('Option Title' => 'Radio', 'Option Type' => 'Select - Radio Buttons').
- Add two Option Values with these values:
['title' => 'One', 'Price' => '10', 'Price Type' => 'Fixed', 'SKU' => 'Performance problem & memory leak in Mage_Index_Model_Process #123'],
['title' => 'Two', 'Price' => '20', 'Price Type' => 'Fixed', 'SKU' => 'Bogus error message if mcrypt extension is not installed. #456'] - Fill the rest of the required information to be able to save the new product.
- Save the product.
- Edit the products Customizable Option, change the Option Values to these values (SKU's are the same):
['title' => 'One', 'Price' => '10', 'Price Type' => 'Fixed', 'SKU' => 'Performance problem & memory leak in Mage_Index_Model_Process #123'],
['title' => 'Two', 'Price' => '20', 'Price Type' => 'Fixed', 'SKU' => 'Performance problem & memory leak in Mage_Index_Model_Process #123'] - Save the product.
Expected result
- The product should contain a Customizable Option with two Option Values, both with SKU set to 'Performance problem & memory leak in Mage_Index_Model_Process #123'.
Actual result
- The product contains a Customizable Option with two Option Values, the first with SKU set to 'Performance problem & memory leak in Mage_Index_Model_Process #123' and the second with SKU set to 'Bogus error message if mcrypt extension is not installed. #456'.
Additional notes
The SKU value is unset in the function Magento\Framework\Model\ResourceModel\Db->prepareDataForUpdate($object)
.