From 79cb90ffa75fd0a82d66ee052bd762986e27fe7d Mon Sep 17 00:00:00 2001 From: Dmytro Poperechnyy <dpoperechnyy@magento.com> Date: Mon, 31 Oct 2016 11:56:29 +0200 Subject: [PATCH] MAGETWO-60155: Default Billing Address and Default Shipping Address checkboxes on Customer page are saved incorrectly - Add importing in namespace; --- app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php b/app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php index 1c38dfa0c71..fd2ceaf0969 100644 --- a/app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php +++ b/app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php @@ -11,6 +11,7 @@ use Magento\Customer\Api\Data\CustomerInterface; use Magento\Customer\Controller\RegistryConstants; use Magento\Customer\Model\EmailNotificationInterface; use Magento\Customer\Model\Metadata\Form; +use Magento\Framework\Exception\LocalizedException; class Save extends \Magento\Customer\Controller\Adminhtml\Index { @@ -267,7 +268,7 @@ class Save extends \Magento\Customer\Controller\Adminhtml\Index $this->_addSessionErrorMessages($messages); $this->_getSession()->setCustomerFormData($originalRequestData); $returnToEdit = true; - } catch (\Magento\Framework\Exception\LocalizedException $exception) { + } catch (LocalizedException $exception) { $this->_addSessionErrorMessages($exception->getMessage()); $this->_getSession()->setCustomerFormData($originalRequestData); $returnToEdit = true; -- GitLab