Skip to content

Unable to save multi-select attributes with grouped/configurable products #10540

Closed
@apsummers

Description

@apsummers

This issue appears to be similar to #4822, but is more like what @daniel-ifrim describes in the last comment. When updating product attributes on a Grouped Product, attributes using a multi-select field do not get saved correctly, and the values are ignored.

Simply saving the product does not trigger ArrayBackend::beforeSave at all. "Save and Duplicate" will trigger ArrayBackend::beforeSave, though the data returned by $object->getData($attributeCode); only contains the current selection. $object, which is passed to ArrayBackend::beforeSave does show the correct selections.

Multi-select fields do save correctly on Simple Products, and the other field types (dropdown, text) seem to save correctly on Grouped Products.

Preconditions

  1. Magento 2.1.7
  2. PHP 7.0.15
  3. MariaDB 10.1

Steps to reproduce

  1. Create a Grouped Product with a multi-select attribute
  2. Select one or more new values for that attribute
  3. Save

Expected result

  1. The attribute is updated

Actual result

  1. The original attribute value is still there

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: 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 passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions