Skip to content

Commit c1dd183

Browse files
committed
MAGETWO-36337: Not user-friendly behaviour of "Save in address book" check-box inside "Shipping Address" section on "create Order" Admin page
1 parent ec3293a commit c1dd183

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Sales/Block/Adminhtml/Order/Create/Shipping

1 file changed

+3
-1
lines changed

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Shipping/Address.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Sales\Block\Adminhtml\Order\Create\Shipping;
79

810
/**
@@ -88,7 +90,7 @@ public function getDontSaveInAddressBook()
8890
return !$save;
8991
}
9092
if ($shippingIsTheSameAsBilling) {
91-
return !($this->getIsAsBilling() && $this->getIsShipping());
93+
return !$shippingIsTheSameAsBilling;
9294
}
9395
return $this->getIsAsBilling();
9496
}

0 commit comments

Comments
 (0)