Skip to content

Commit 4041681

Browse files
committed
ACP2E-2704: Getting Unable to send the cookie. Size of 'mage-messages' while trying to Reorder
1 parent 03621bb commit 4041681

File tree

1 file changed

+0
-10
lines changed
  • app/code/Magento/Sales/Controller/AbstractController

1 file changed

+0
-10
lines changed

app/code/Magento/Sales/Controller/AbstractController/Reorder.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ public function execute()
9494
// to session for guest customer, as it does \Magento\Checkout\Model\Cart::save which is deprecated.
9595
$this->checkoutSession->setQuoteId($reorderOutput->getCart()->getId());
9696

97-
$errors = $reorderOutput->getErrors();
98-
if (!empty($errors)) {
99-
$useNotice = $this->_objectManager->get(\Magento\Checkout\Model\Session::class)->getUseNotice(true);
100-
foreach ($errors as $error) {
101-
$useNotice
102-
? $this->messageManager->addNoticeMessage($error->getMessage())
103-
: $this->messageManager->addErrorMessage($error->getMessage());
104-
}
105-
}
106-
10797
return $resultRedirect->setPath('checkout/cart');
10898
}
10999
}

0 commit comments

Comments
 (0)