Skip to content

Commit 894a367

Browse files
committed
ACP2E-94: When product is removed in Multiaddress checkout, the address dropdown value changes to default of all product.
CR fixes
1 parent d7642cc commit 894a367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Quote/Model/Quote.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ public function setBillingAddress(\Magento\Quote\Api\Data\AddressInterface $addr
13561356
{
13571357
$old = $this->getAddressesCollection()->getItemById($address->getId())
13581358
?? $this->getBillingAddress();
1359-
if ($old != null) {
1359+
if ($old !== null) {
13601360
$old->addData($address->getData());
13611361
} else {
13621362
$this->addAddress($address->setAddressType(Address::TYPE_BILLING));
@@ -1378,7 +1378,7 @@ public function setShippingAddress(\Magento\Quote\Api\Data\AddressInterface $add
13781378
} else {
13791379
$old = $this->getAddressesCollection()->getItemById($address->getId())
13801380
?? $this->getShippingAddress();
1381-
if ($old != null) {
1381+
if ($old !== null) {
13821382
$old->addData($address->getData());
13831383
} else {
13841384
$this->addAddress($address->setAddressType(Address::TYPE_SHIPPING));

0 commit comments

Comments
 (0)