Skip to content

Commit b9d5669

Browse files
committed
#7844 - added entity id of customer to validate customer
1 parent e47ac7d commit b9d5669

File tree

1 file changed

+5
-0
lines changed
  • app/code/Magento/Customer/Controller/Adminhtml/Index

1 file changed

+5
-0
lines changed

app/code/Magento/Customer/Controller/Adminhtml/Index/Validate.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ protected function _validateCustomer($response)
4444
$data,
4545
\Magento\Customer\Api\Data\CustomerInterface::class
4646
);
47+
$submittedData = $this->getRequest()->getParam('customer');
48+
if (array_key_exists('entity_id', $submittedData)) {
49+
$entity_id = $submittedData['entity_id'];
50+
$customer->setId($entity_id);
51+
}
4752
$errors = $this->customerAccountManagement->validate($customer)->getMessages();
4853
} catch (\Magento\Framework\Validator\Exception $exception) {
4954
/* @var $error Error */

0 commit comments

Comments
 (0)