Magento2: Unable to save Visual Swatch attribute

Created on 8 Sep 2017  路  4Comments  路  Source: magento/magento2

I can't save visual swatch attribute with option value 0 in admin field.

Preconditions

  1. Magento 2.1.7 / Magento 2.1.8 EE
  2. OS: Ubuntu 16.04
  3. Server: Apache/2.4.18
  4. Mysql version 5.7.19
  5. PHP 7.0.22-0ubuntu0.16.04.1

Steps to reproduce

  1. Add new product attribute type visual swatch in admin panel
  2. Assign value 0 to option in admin field
    swatch_value_zero
  3. Save Attribute

Expected result

  1. Attribute save properly with value 0 in admin field

Actual result

  1. We get error message "Admin is a required field in the each row" and attribute is not saved
    swatch_error_message
Format is valid bug report duplicate

All 4 comments

The fix for https://github.com/magento/magento2/issues/9619 is already in 2.1-develop branch thus will be released in one of the next 2.1.x versions.

I believe the same code is responsible for both text/visual swatch label validation, would be nice if you check if the issue is gone on 2.1-develop or 2.1.10-preview. Thus not marking as duplicate before confirmation.

I confirm that problem is resolved both 2.1-develop and 2.1.10-preview branch.

Thank you @orlangur for the investigation of this issue! 馃憤
Closing the issue. Fix will be available with 2.1.10 release

This doesn't appear to be fixed - We are still seeing the issue in v2.2.3. I also don't see any reference to the fix in the CHANGELOG. Can't someone point me to where this was fixed?

Was this page helpful?
0 / 5 - 0 ratings