Skip to content

Commit 41f6f32

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-3233: Admin can still place order even without payment method
1 parent 5b967b8 commit 41f6f32

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Sales/Controller/Adminhtml/Order/Create

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Controller/Adminhtml/Order/Create/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function execute()
4545
$this->_getOrderCreateModel()->setPaymentData($paymentData);
4646
$this->_getOrderCreateModel()->getQuote()->getPayment()->addData($paymentData);
4747
}
48-
else {
48+
elseif ($this->getRequest()->isPost()) {
4949
$paymentData = array('method' => '');
5050
$this->_getOrderCreateModel()->getQuote()->getPayment()->addData($paymentData);
5151
}

0 commit comments

Comments
 (0)