Skip to content

Magento 2.1 Multi Select Attribute doesn't save empty values #6281

@Corefix

Description

@Corefix

Preconditions

  1. Magento 2.1
  2. Chrome 52.x

Steps to reproduce

  1. Go to Magento admin
  2. Go to Products > Catalog
  3. Select a product that have a multi select attribute
  4. Find the multi select attribute and set one or more of the options on the product (so it looks like the following image).
    screen shot 2016-08-23 at 09 28 09
  5. Save the product
  6. Go back and edit the same product again.
  7. Now deselect all options in the same multi select field
  8. Save product again

Expected result

  1. The product should now have no options selected

Actual result

  1. Product have all options still selected.

It looks like the empty fields are not included in the post request, which they should, since removing values is just as important as setting them :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions