From addda4281d079e1b9988ee6fc97d7d79f092acfd Mon Sep 17 00:00:00 2001 From: Oleksandr Yeremenko Date: Thu, 16 Nov 2017 03:19:04 +0100 Subject: [PATCH] Issue: 3596. Resolve Notice with undefined index 'value' while preview order with instance payable method selected if custom offline payment method is defined in system --- app/code/Magento/Payment/Helper/Data.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/Magento/Payment/Helper/Data.php b/app/code/Magento/Payment/Helper/Data.php index e3122913d5dfa..f3565ea324290 100644 --- a/app/code/Magento/Payment/Helper/Data.php +++ b/app/code/Magento/Payment/Helper/Data.php @@ -293,6 +293,7 @@ public function getPaymentMethodList($sorted = true, $asLabelValue = false, $wit foreach ($methods as $code => $title) { if (isset($groups[$code])) { $labelValues[$code]['label'] = $title; + $labelValues[$code]['value'] = null; } elseif (isset($groupRelations[$code])) { unset($labelValues[$code]); $labelValues[$groupRelations[$code]]['value'][$code] = ['value' => $code, 'label' => $title];