Skip to content

Swatch Text attributes options not created correctly via api #18057

@jakubderdziak

Description

@jakubderdziak

Preconditions

  1. Magento 2.2.5
  2. PHP7.1

Steps to reproduce

  1. Create a select attribute
  2. Make this attribute text swatch
  3. Try adding attribute options through the API via POST /V1/products/attributes/{attributeCode}/options
  4. See attribute in admin panel

Expected result

The attribute option should have "Swatch" and "Description" set
After adding two options, I can save attribute

Actual result

Only "Description" is filled
After adding two options that way, unable to save attribute

Note

The other way to reproduce it is to add option via php, the same way as in: #11032

Metadata

Metadata

Assignees

Labels

Component: SwatchesIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: 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 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions