Skip to content

[2.2.6] In admin, last swatch option set to default upon save #18348

@skilar

Description

@skilar

Preconditions

  1. Magento 2.2.6

Steps to reproduce

  1. On an existing visual or text swatch, add a new swatch value.
  2. Make sure there is no default swatch selected, or if there is, ensure it is not the final option in the list of swatches.
  3. Save your changes.
  4. Open the attribute again.

Expected result

  1. The new swatch option should be added, and the default swatch should not change.

Actual result

  1. The last swatch option in the list is set to default.
  2. If you select another option as default, save your changes, and open the attribute again, the last swatch is still selected as default.

Metadata

Metadata

Labels

Component: SwatchesEvent: mageconfEvent: squashtoberfestIssue: 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 validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions