Skip to content

Commit 9f9d3fe

Browse files
committed
MAGETWO-60155: Default Billing Address and Default Shipping Address checkboxes on Customer page are saved incorrectly
- Removed importing in namespace;
1 parent dadf2eb commit 9f9d3fe

File tree

1 file changed

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

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +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;
1514

16-
/**
17-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18-
*/
1915
class Save extends \Magento\Customer\Controller\Adminhtml\Index
2016
{
2117
/**
@@ -271,7 +267,7 @@ public function execute()
271267
$this->_addSessionErrorMessages($messages);
272268
$this->_getSession()->setCustomerFormData($originalRequestData);
273269
$returnToEdit = true;
274-
} catch (LocalizedException $exception) {
270+
} catch (\Magento\Framework\Exception\LocalizedException $exception) {
275271
$this->_addSessionErrorMessages($exception->getMessage());
276272
$this->_getSession()->setCustomerFormData($originalRequestData);
277273
$returnToEdit = true;

0 commit comments

Comments
 (0)