Skip to content

Commit

Permalink
magento#7844 - added entity id of customer to validate customer
Browse files Browse the repository at this point in the history
  • Loading branch information
storbahn committed May 20, 2017
1 parent e47ac7d commit b9d5669
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ protected function _validateCustomer($response)
$data,
\Magento\Customer\Api\Data\CustomerInterface::class
);
$submittedData = $this->getRequest()->getParam('customer');
if (array_key_exists('entity_id', $submittedData)) {
$entity_id = $submittedData['entity_id'];
$customer->setId($entity_id);
}
$errors = $this->customerAccountManagement->validate($customer)->getMessages();
} catch (\Magento\Framework\Validator\Exception $exception) {
/* @var $error Error */
Expand Down

0 comments on commit b9d5669

Please sign in to comment.