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(
55
55
$ params = $ this ->request ->getBodyParams ();
56
56
if (!empty ($ params ) && isset ($ params ['quote ' ]['orig_order_id ' ])) {
57
57
$ 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. ' ));
66
62
}
67
63
}
68
64
}
You can’t perform that action at this time.
0 commit comments