Skip to content

Commit d2b3457

Browse files
author
Mohan Ahuja
committed
ACP2E-356: Cannot create a new customer from Admin if Customer Sharing setting is set to Global
- Reverting old fix for allowing blank storeview to be saved in Send Welcome Email From field.
1 parent cd874b1 commit d2b3457

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public function execute()
349349
['customer' => $customer, 'request' => $this->getRequest()]
350350
);
351351

352-
if (isset($customerData['sendemail_store_id']) && !empty($customerData['sendemail_store_id'])) {
352+
if (isset($customerData['sendemail_store_id']) && $customerData['sendemail_store_id'] !== false) {
353353
$customer->setStoreId($customerData['sendemail_store_id']);
354354
try {
355355
$this->customerAccountManagement->validateCustomerStoreIdByWebsiteId($customer);

0 commit comments

Comments
 (0)