Closed
Description
Preconditions
- Install Magento 2.1.0
Steps to reproduce
put /rest/V1/products/attributes/{attribute_code}
body:
{
"attribute":
{
"attribute_id": 192,
"default_frontend_label": "Color2"
}
}
Expected result
- The default frontend label is set to Color2
Actual result
Sending an empty options array has the same result.
{
"attribute": {
"attribute_id": 192,
"attribute_code": "color",
"default_frontend_label": "Color2",
"options": []
}
}
Another little thing. If you update the attribute labels using frontend_labels:
{
"attribute": {
"attribute_id": 192,
"attribute_code": "color",
"default_frontend_label": "color",
"frontend_labels": [
{
"store_id": 1,
"label": "kleur"
},
{
"store_id": 2,
"label": "test"
}]
}
}
the field default_frontend_label is ignored.