File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
app/code/Magento/Sales/Controller/AbstractController Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments