Skip to content

Commit 15c0597

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-3233: Admin can still place order even without payment method
1 parent 22a12b2 commit 15c0597

File tree

1 file changed

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

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ public function execute()
9090
$this->storeManager->setCurrentStore($request->getParam('store_id'));
9191
}
9292
try {
93-
if (!$request->getParam('payment')) {
94-
$paymentData = ['payment' => ['method' => '']];
95-
$request->setParams($paymentData);
96-
}
93+
// if (!$request->getParam('payment')) {
94+
// $paymentData = array('payment' => array('method' => ''));
95+
// //$this->getRequest()->setPost($paymentData);
96+
// //$request->setParams($paymentData);
97+
// }
9798
$this->_initSession()->_processData();
9899
} catch (\Magento\Framework\Exception\LocalizedException $e) {
99100
$this->_reloadQuote();

0 commit comments

Comments
 (0)