Skip to content

Commit 505fd84

Browse files
committed
ACP2E-693: Addresses disappear from multi-shipping checkout after removing several items.
1 parent 402c5bc commit 505fd84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2670,13 +2670,13 @@ private function assignAddress(Address $address, bool $isBillingAddress = true):
26702670
/**
26712671
* Returns quote address items
26722672
*
2673-
* @param int|null $itemId
2673+
* @param int $itemId
26742674
* @return array
26752675
*/
2676-
private function getQuoteShippingAddressItemsByQuoteItemId($itemId = null): array
2676+
private function getQuoteShippingAddressItemsByQuoteItemId(int $itemId): array
26772677
{
26782678
$addressItems = [];
2679-
if ($itemId !== null && $this->isMultipleShippingAddresses()) {
2679+
if ($this->isMultipleShippingAddresses()) {
26802680
$addresses = $this->getAllShippingAddresses();
26812681
foreach ($addresses as $address) {
26822682
foreach ($address->getAllItems() as $item) {

0 commit comments

Comments
 (0)