Closed
Description
Preconditions
Magento ver. 2.2.5 using the REST API.
Steps to reproduce
- Make a POST call to http://winninge.nextmp.net/rest/V1/products/attributes/<attribute_name>/options i.e., http://winninge.nextmp.net/rest/V1/products/attributes/Size/options setting the label and value to be a numeric string, for example
{ "option": { "label": "30", "value": "30", "sort_order": 0, "is_default": false, "store_labels": [{ "store_id": 0, "label": "30" }] } }
Expected result
- Attribute option to be created successfully with a 200 status code
Actual result
- The API responds with
{ "message": "Cannot save attribute %1", "parameters": ["size"] }
and a 400 status code
This is happening when the attribute is a number, and a number alone. It also happens with floating point numbers, such as 6.5.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release