Skip to content

Commit 5c99440

Browse files
committed
ACP2E-693: Addresses disappear from multi-shipping checkout after removing several items.
1 parent c4f2984 commit 5c99440

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2523,6 +2523,7 @@ public function getCheckoutMethod($originalMethod = false)
25232523
* Get quote items assigned to different quote addresses populated per item qty.
25242524
*
25252525
* @return array
2526+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
25262527
*/
25272528
public function getShippingAddressesItems()
25282529
{
@@ -2668,7 +2669,7 @@ private function assignAddress(Address $address, bool $isBillingAddress = true):
26682669
/**
26692670
* Returns quote address items
26702671
*
2671-
* @param $itemId
2672+
* @param int|null $itemId
26722673
* @return array
26732674
*/
26742675
private function getQuoteShippingAddressItemsByQuoteItemId($itemId = null): array

0 commit comments

Comments
 (0)