Skip to content

Commit 5fdfcc2

Browse files
committed
In admin, the "Shopping Cart" on left side doesn't get updated when selecting the items and "Move to Shopping Cart" from the right side
- Fixed the static and integration test failure.
1 parent b8cbdc0 commit 5fdfcc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Sales/Model/AdminOrder/Create.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Magento\Customer\Model\Metadata\Form as CustomerForm;
1212
use Magento\Framework\Api\ExtensibleDataObjectConverter;
1313
use Magento\Framework\App\ObjectManager;
14+
use Magento\Framework\Exception\LocalizedException;
1415
use Magento\Quote\Model\Quote\Address;
1516
use Magento\Quote\Model\Quote\Address\CustomAttributeListInterface;
1617
use Magento\Quote\Model\Quote\Item;
@@ -2300,8 +2301,8 @@ private function removeCartTransferredItemsAndUpdateQty(int|null|Item $cartItem,
23002301
$cartItem->setHasError(false);
23012302
if (isset($this->request->get('item')[$itemId]['qty'])) {
23022303
$qty = $this->request->get('item')[$itemId]['qty'];
2304+
$cartItem->setQty($qty);
23032305
}
2304-
$cartItem->setQty($qty);
23052306

23062307
if ($cartItem->getHasError()) {
23072308
throw new LocalizedException(__($cartItem->getMessage()));

0 commit comments

Comments
 (0)