Skip to content

Commit e510ba1

Browse files
committed
AC-12582: User cart issue fix
1 parent f2a6358 commit e510ba1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Quote/Plugin/ValidateQuoteOrigOrder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public function beforeSave(
4545
CartRepositoryInterface $cartRepository,
4646
CartInterface $quote
4747
): void {
48-
if ($quote->getOrigOrderId()) {
49-
$orderId = $quote->getOrigOrderId();
48+
if ($orderId = $quote->getOrigOrderId()) {
5049
$order = $this->orderRepository->get($orderId);
5150
$orderCustomer = (int)$order->getCustomerId();
5251
if ($quote->getCustomerId() !== $orderCustomer) {

0 commit comments

Comments
 (0)