Skip to content

Commit 7cad157

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Multishipping/Test/Mftf/Test/StoreFrontRemoveItemFromMultishipmentCartTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<waitForPageLoad time="30" stepKey="waitForCartSummaryPageToLoadAfterRemovalOfSecondItem"/>
8181
<!-- Verify there are 1 items still available after removal of second -->
8282
<seeNumberOfElements userInput="1" selector="a.action.delete" stepKey="seeOneItems"/>
83-
<!-- Remove second simple item from cart -->
83+
<!-- Remove third simple item from cart -->
8484
<actionGroup ref="StorefrontRemoveProductOnCheckoutActionGroup" stepKey="removeThirdItemFromCart"/>
8585
<waitForPageLoad time="30" stepKey="waitForCartSummaryPageToLoadAfterRemovalOfTestItem"/>
8686
</test>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,7 @@ private function getQuoteShippingAddressItemsByQuoteItemId(int $itemId): array
26832683
if ($item->getParentItemId() || $item->getProduct()->getIsVirtual()) {
26842684
continue;
26852685
}
2686-
if ($item->getQuoteItemId() === $itemId) {
2686+
if ((int)$item->getQuoteItemId() === $itemId) {
26872687
$addressItems[] = $item;
26882688
}
26892689
}

0 commit comments

Comments
 (0)