Skip to content

customer objects are equal to eachother after observing event customer_save_after_data_object  #7915

Closed
@anthonycouckhuyt

Description

@anthonycouckhuyt

Preconditions

  1. Magento CE 2.1.2 without sample data is installed.
  2. Running on Linux Webserver with PHP 7, MySQL 5.0.12

Steps to reproduce

  1. Log in with existing user in frontend.
  2. Change first name of customer to 'test35'.
  3. Observe the event 'customer_save_after_data_object'. Two objects are given called : 'orig_customer_data_object' & 'customer_data_object'.
  4. Those two objects are identical to each other. First name in both objects is equal to 'test35'

Expected result

  1. 'customer_data_object' firstname should not be equal to 'orig_customer_data_object'

Actual result

  1. orig_customer_data_object and customer_data_object are equal to each other
    Screenshot here: http://imgur.com/a/IDV1t

This also happens with last name and email. There may be more, but I haven't checked.

Metadata

Metadata

Assignees

Labels

Component: CustomerFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced 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 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions