Skip to content

Commit f3e8ca5

Browse files
committed
graphQl-509: save_in_address_book has no impact on Address Book
1 parent 30eeb7f commit f3e8ca5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/GetShippingAddress.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ private function createShippingAddress(
9898
$shippingAddress = $this->quoteAddressFactory->createBasedOnInputData($addressInput);
9999

100100
// need to save address only for registered user and if save_in_address_book = true
101-
if (
102-
0 !== $customerId
101+
if (0 !== $customerId
103102
&& isset($addressInput['save_in_address_book'])
104103
&& (bool)$addressInput['save_in_address_book'] === true
105104
) {

app/code/Magento/QuoteGraphQl/Model/Cart/SetBillingAddressOnCart.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ private function createBillingAddress(
113113

114114
$customerId = $context->getUserId();
115115
// need to save address only for registered user and if save_in_address_book = true
116-
if (
117-
0 !== $customerId
116+
if (0 !== $customerId
118117
&& isset($addressInput['save_in_address_book'])
119118
&& (bool)$addressInput['save_in_address_book'] === true
120119
) {

0 commit comments

Comments
 (0)