Skip to content

Commit 002ac84

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-3233: Admin can still place order even without payment method
1 parent 4de94a3 commit 002ac84

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ 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' => ''));
93+
if (!$request->getParam('payment')) {
94+
$paymentData = ['payment' => ['method' => '']];
9595
$request->setParams($paymentData);
9696
}
9797
$this->_initSession()->_processData();

0 commit comments

Comments
 (0)