Rest API is allowing duplication for attribute options and also always returning an empty option #10013
Labels
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
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
triage wanted
Uh oh!
There was an error while loading. Please reload this page.
Preconditions:
Steps to reproduce:
Actual Result:
{"is_wysiwyg_enabled":"","is_html_allowed_on_front":"","used_for_sort_by":"","is_filterable":"","is_filterable_in_search":"","is_used_in_grid":"","is_visible_in_grid":"","is_filterable_in_grid":"","position":"0","apply_to":[],"is_searchable":"0","is_visible_in_advanced_search":"0","is_comparable":"0","is_used_for_promo_rules":"0","is_visible_on_front":"0","used_in_product_listing":"0","is_visible":"1","scope":"global","attribute_id":"136","attribute_code":"aaattribute","frontend_input":"select","entity_type_id":"4","is_required":"","options":[{"label":"","value":""},{"label":"ThisIsATestValue","value":"4"},{"label":"ThisIsATestValue","value":"5"},{"label":"ThisIsATestValue","value":"6"}],"is_user_defined":"1","default_frontend_label":"aaattribute","frontend_labels":"","backend_type":"int","source_model":"Magento\\Eav\\Model\\Entity\\Attribute\\Source\\Table","default_value":"6","is_unique":"0","validation_rules":[]}
Expected result
{"is_wysiwyg_enabled":"","is_html_allowed_on_front":"","used_for_sort_by":"","is_filterable":"","is_filterable_in_search":"","is_used_in_grid":"","is_visible_in_grid":"","is_filterable_in_grid":"","position":"0","apply_to":[],"is_searchable":"0","is_visible_in_advanced_search":"0","is_comparable":"0","is_used_for_promo_rules":"0","is_visible_on_front":"0","used_in_product_listing":"0","is_visible":"1","scope":"global","attribute_id":"136","attribute_code":"aaattribute","frontend_input":"select","entity_type_id":"4","is_required":"","options":[{"label":"ThisIsATestValue","value":"4"}],"is_user_defined":"1","default_frontend_label":"aaattribute","frontend_labels":"","backend_type":"int","source_model":"Magento\\Eav\\Model\\Entity\\Attribute\\Source\\Table","default_value":"6","is_unique":"0","validation_rules":[]}
Additional information
{"label":"","value":""}
) in actual result.{"label":"ThisIsATestValue","value":"4"},{"label":"ThisIsATestValue","value":"5"},{"label":"ThisIsATestValue","value":"6"}
) because its not allowed from admin panel too. It should say something like "already exist".The text was updated successfully, but these errors were encountered: