File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/Multishipping/Model/Checkout/Type Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -471,6 +471,7 @@ protected function _addShippingItem($quoteItemId, $data)
471
471
}
472
472
473
473
$ quoteAddress = $ this ->getQuote ()->getShippingAddressByCustomerAddressId ($ address ->getId ());
474
+ $ quoteAddress ->setCustomerAddressId ($ addressId );
474
475
$ quoteAddressItem = $ quoteAddress ->getItemByQuoteItemId ($ quoteItemId );
475
476
if ($ quoteAddressItem ) {
476
477
$ quoteAddressItem ->setQty ((int )($ quoteAddressItem ->getQty () + $ qty ));
@@ -936,6 +937,6 @@ protected function isAddressIdApplicable($addressId)
936
937
/** @var \Magento\Customer\Api\Data\AddressInterface $address */
937
938
return $ address ->getId ();
938
939
}, $ this ->getCustomer ()->getAddresses ());
939
- return in_array ($ addressId , $ applicableAddressIds );
940
+ return ! is_numeric ( $ addressId ) || in_array ($ addressId , $ applicableAddressIds );
940
941
}
941
942
}
You can’t perform that action at this time.
0 commit comments