Skip to content

Product Customizable Options Value, can't save SKU value #18037

Closed
@SvanteAvenla

Description

@SvanteAvenla

Preconditions

  1. Magento CE 2.2.3
  2. PHP 7.0.30

Steps to reproduce

  1. Create a new Simple product.
  2. Add a new Customizable Option ('Option Title' => 'Radio', 'Option Type' => 'Select - Radio Buttons').
  3. 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']
  4. Fill the rest of the required information to be able to save the new product.
  5. Save the product.
  6. 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']
  7. Save the product.

Expected result

  1. 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

  1. 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions