Skip to content

Commit 79cb90f

Browse files
committed
MAGETWO-60155: Default Billing Address and Default Shipping Address checkboxes on Customer page are saved incorrectly
- Add importing in namespace;
1 parent fa8dd7b commit 79cb90f

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Magento\Customer\Controller\RegistryConstants;
1212
use Magento\Customer\Model\EmailNotificationInterface;
1313
use Magento\Customer\Model\Metadata\Form;
14+
use Magento\Framework\Exception\LocalizedException;
1415

1516
class Save extends \Magento\Customer\Controller\Adminhtml\Index
1617
{
@@ -267,7 +268,7 @@ public function execute()
267268
$this->_addSessionErrorMessages($messages);
268269
$this->_getSession()->setCustomerFormData($originalRequestData);
269270
$returnToEdit = true;
270-
} catch (\Magento\Framework\Exception\LocalizedException $exception) {
271+
} catch (LocalizedException $exception) {
271272
$this->_addSessionErrorMessages($exception->getMessage());
272273
$this->_getSession()->setCustomerFormData($originalRequestData);
273274
$returnToEdit = true;

0 commit comments

Comments
 (0)