We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 313c221 commit da79b9cCopy full SHA for da79b9c
app/code/Magento/Payment/Plugin/AdminSetPaymentMethod.php
@@ -29,13 +29,15 @@ public function __construct(
29
* Checkout LayoutProcessor before process plugin.
30
*
31
* @param Create $subject
32
- * @param $data
+ * @param array $data
33
* @return void
34
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
35
*/
36
- public function beforeImportPostData(Create $subject, $data)
+ public function beforeImportPostData(Create $subject, array $data)
37
{
38
- if (!isset($data['payment_method']) && !isset($this->request->getParam('payment')['method'])) {
+ if (!isset($data['payment_method'])
39
+ && ($_POST)
40
+ && !isset($this->request->getParam('payment')['method'])) {
41
$subject->setPaymentMethod('');
42
}
43
0 commit comments