-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Component: WebapiUse with concrete module component label E.g. "Component: Webapi" + "Catalog"Use with concrete module component label E.g. "Component: Webapi" + "Catalog"Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 release
Description
Preconditions (*)
Magento 2.2.7 and Magento 2.3-develop provided by the bot.
Steps to reproduce (*)
- Create multiple store views
- Create a customer and set his store view to one that is not the default
- Use the rest api to change the first name of the customer (put to PUT rest/V1/customers/8)
I used the following body. (note the missing store_id)
{ "customer": {
"id": 1,
"group_id": 1,
"default_billing": "0",
"default_shipping": "0",
"created_at": "2019-05-13 14:33:11",
"updated_at": "2019-05-13 14:33:11",
"created_in": "alternate store view",
"email": "[email protected]",
"firstname": "firstname alternate",
"lastname": "lastname",
"gender": 0,
"website_id": 1,
"addresses": [],
"disable_auto_group_change": 0
}
}
Expected result (*)
- The first name is changed.
- All fields not passed in the PUT call are not changed. (Including store_id).
{
"items": [
{
"id": 1,
"group_id": 1,
"default_billing": "0",
"default_shipping": "0",
"created_at": "2019-05-13 14:33:11",
"updated_at": "2019-05-13 14:40:56",
"created_in": "alternate store view",
"email": "[email protected]",
"firstname": "firstname alternate",
"lastname": "lastname",
"gender": 0,
"store_id": 2,
"website_id": 1,
"addresses": [],
"disable_auto_group_change": 0
}
],
"search_criteria": {
"filter_groups": [],
"page_size": 10
},
"total_count": 1
}
Actual result (*)
- The store_id is changed to the default store_id
{
"items": [
{
"id": 1,
"group_id": 1,
"default_billing": "0",
"default_shipping": "0",
"created_at": "2019-05-13 14:33:11",
"updated_at": "2019-05-13 14:40:56",
"created_in": "alternate store view",
"email": "[email protected]",
"firstname": "firstname alternate",
"lastname": "lastname",
"gender": 0,
"store_id": 1,
"website_id": 1,
"addresses": [],
"disable_auto_group_change": 0
}
],
"search_criteria": {
"filter_groups": [],
"page_size": 10
},
"total_count": 1
}
Metadata
Metadata
Assignees
Labels
Component: WebapiUse with concrete module component label E.g. "Component: Webapi" + "Catalog"Use with concrete module component label E.g. "Component: Webapi" + "Catalog"Fixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 release