Create attribute option via API for swatch attribute fails #10707
Labels
bug report
Fixed in 2.1.x
The issue has been fixed in 2.1 release line
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Preconditions
Steps to reproduce
Expected result
The attribute options should be added the same as without swatch options selected for attribute.
Actual result
Although the API is not giving any errors and returns true with code 200, the option is not added to the attribute.
Problem
The problem is due to the swatch module plugin EavAttribute, in this plugin the option value is overwritten by optionvisual or optiontext. This is because these are used for the tables in the back-end. However through the API it is only possible to enter a value for option. So the option you entered through the API is replaced by an empty value.
The text was updated successfully, but these errors were encountered: