We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 981ba5b commit c84c470Copy full SHA for c84c470
app/code/Magento/Customer/Model/Plugin/UpdateCustomer.php
@@ -63,7 +63,7 @@ public function beforeSave(
63
$customerId === $customerSessionId
64
) {
65
$customer = $this->getUpdatedCustomer($customerRepository->getById($customerId), $customer);
66
- } elseif ($userType === UserContextInterface::USER_TYPE_ADMIN) {
+ } elseif ($userType === UserContextInterface::USER_TYPE_ADMIN && $customerId) {
67
68
}
69
0 commit comments