Closed
Description
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
- Magento 2.1.7
- PHP 7.0.15
- MariaDB 10.1
Steps to reproduce
- Create a Grouped Product with a multi-select attribute
- Select one or more new values for that attribute
- Save
Expected result
- The attribute is updated
Actual result
- The original attribute value is still there