File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
app/code/Magento/Quote/Plugin Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,10 @@ public function beforeSave(
5555 $ params = $ this ->request ->getBodyParams ();
5656 if (!empty ($ params ) && isset ($ params ['quote ' ]['orig_order_id ' ])) {
5757 $ orderId = $ params ['quote ' ]['orig_order_id ' ];
58- try {
59- $ order = $ this ->orderRepository ->get ($ orderId );
60- $ orderCustomer = (int )$ order ->getCustomerId ();
61- if ($ quote ->getCustomerId () !== $ orderCustomer ) {
62- throw new NoSuchEntityException (__ ('Please check input parameters. ' ));
63- }
64- } catch (\Exception $ e ) {
65- throw new NoSuchEntityException (__ ('Please check input parameters. ' ), $ e );
58+ $ order = $ this ->orderRepository ->get ($ orderId );
59+ $ orderCustomer = (int )$ order ->getCustomerId ();
60+ if ($ quote ->getCustomerId () !== $ orderCustomer ) {
61+ throw new NoSuchEntityException (__ ('Please check input parameters. ' ));
6662 }
6763 }
6864 }
You can’t perform that action at this time.
0 commit comments