File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
app/code/Magento/Sales/Controller/Adminhtml/Order Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -291,10 +291,9 @@ protected function _processActionData($action = null)
291291
292292 $ this ->_getOrderCreateModel ()->saveQuote ();
293293
294- if (!( $ paymentData = $ this ->getRequest ()->getPost ('payment ' ) )) {
295- $ paymentData = array ( ' method ' => '' );
294+ if ($ paymentData = $ this ->getRequest ()->getPost ('payment ' )) {
295+ $ this -> _getOrderCreateModel ()-> getQuote ()-> getPayment ()-> addData ( $ paymentData );
296296 }
297- $ this ->_getOrderCreateModel ()->getQuote ()->getPayment ()->addData ($ paymentData );
298297
299298 /**
300299 * Saving of giftmessages
Original file line number Diff line number Diff line change @@ -90,6 +90,10 @@ public function execute()
9090 $ this ->storeManager ->setCurrentStore ($ request ->getParam ('store_id ' ));
9191 }
9292 try {
93+ if (!$ request ->getParam ('payment ' )){
94+ $ paymentData = array ('payment ' => array ('method ' => '' ));
95+ $ request ->setParams ($ paymentData );
96+ }
9397 $ this ->_initSession ()->_processData ();
9498 } catch (\Magento \Framework \Exception \LocalizedException $ e ) {
9599 $ this ->_reloadQuote ();
You can’t perform that action at this time.
0 commit comments