Skip to content

Swatch names and values can disappear with an uncorrectable error after "Saving" from another config tab #5549

Closed
@Sanfam

Description

@Sanfam

When an admin attempts to create a new visual swatch, they need to ensure that the "Admin" column has all of the necessary values entered. If the necessary data is absent, the user will be prompted to correct this discrepancy. If, however, they leave one or more admin fields absent while clicking "Save Attribute" from within another tab (for example, the "Storefront Properties" option set), they receive an error reading Admin is a required field in the each row and on navigating back to the "Properties" tab are shown a blank set of swatches with no ability to add, edit, or remove them. Any work put in up to this point is lost.

Steps to reproduce

  1. Begin creating a new Visual Swatch attribute. Add several options, being sure to leave both Name fields on the top row blank.
  2. magento_attribute_bad_configuration
  3. Navigate to the "Storefront Properties" tab and make any changes
  4. From the "Storefront Properties" tab, click the orange "Save Attribute" button.

Expected result

  1. A (mostly) grammatically correct Error Message appears below the swatch list, Admin is a required field in the each row
  2. magento_attribute_correct_error
  3. The user is able to make their correction and add the missing required data

Actual result

  1. User receives error, Admin is a required field in the each row at the top of the "Storefront Properties" page
  2. magento_attribute_failure_state
  3. The swatch list is completely absent with no way to add, edit, or remove data. This swatch needs to be recreated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogFixed 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 not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions