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)
291
291
292
292
$ this ->_getOrderCreateModel ()->saveQuote ();
293
293
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 );
296
296
}
297
- $ this ->_getOrderCreateModel ()->getQuote ()->getPayment ()->addData ($ paymentData );
298
297
299
298
/**
300
299
* Saving of giftmessages
Original file line number Diff line number Diff line change @@ -90,6 +90,10 @@ public function execute()
90
90
$ this ->storeManager ->setCurrentStore ($ request ->getParam ('store_id ' ));
91
91
}
92
92
try {
93
+ if (!$ request ->getParam ('payment ' )){
94
+ $ paymentData = array ('payment ' => array ('method ' => '' ));
95
+ $ request ->setParams ($ paymentData );
96
+ }
93
97
$ this ->_initSession ()->_processData ();
94
98
} catch (\Magento \Framework \Exception \LocalizedException $ e ) {
95
99
$ this ->_reloadQuote ();
You can’t perform that action at this time.
0 commit comments