Skip to content

Commit

Permalink
#7915: customer objects are equal to eachother after observing event …
Browse files Browse the repository at this point in the history
…customer_save_after_data_object
  • Loading branch information
RomaKis committed Oct 24, 2017
1 parent 4d26093 commit 0055fb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function save(\Magento\Customer\Api\Data\CustomerInterface $customer, $pa
$savedCustomer = $this->get($customer->getEmail(), $customer->getWebsiteId());
$this->eventManager->dispatch(
'customer_save_after_data_object',
['customer_data_object' => $savedCustomer, 'orig_customer_data_object' => $customer]
['customer_data_object' => $savedCustomer, 'orig_customer_data_object' => $prevCustomerData]
);
return $savedCustomer;
}
Expand Down

0 comments on commit 0055fb8

Please sign in to comment.