Skip to content

Updating Customer through rest/all/V1/customers/:id resets group_id if group_id not passed in payload #14663

Closed
@abancroft0

Description

@abancroft0

Preconditions

  1. Magento Version 2.2.3 using rest API
  2. Passing a JSON payload with minimum required data (email, first/last name, website_id, id)

Steps to reproduce

  1. Update any customer who's group_id isn't the first group_id in the source list
  2. Pass the customer payload with email, firstname, lastname, website_id, id

Expected result

  1. I expect that only the data passed in the payload would be modified
  2. Example: {"customer":{"email":"test@gmail.com","firstname":"magento","lastname":"user","website_id":1,"id":77486}} should leave the customer's full data structure unchanged.

Actual result

  1. If the above customer had a group_id of 5, and our full group_id consisted of [1,2,3,4,5], the customer's group_id after passing the above payload would be set to 1:

Before:
image

PUT:
image

Results:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Event: dmcdindia1Fixed in 2.1.xThe issue has been fixed in 2.1 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P4No current plan to fix. Fixing can be deferred as a logical part of more important work.Progress: doneReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S4Affects aesthetics, professional look and feel, “quality” or “usability”.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itbug reportstale issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions