Skip to content

Commit

Permalink
Issue: 3596. Resolve Notice with undefined index 'value' while previe…
Browse files Browse the repository at this point in the history
…w order with instance payable method selected if custom offline payment method is defined in system
  • Loading branch information
madonzy committed Nov 16, 2017
1 parent e18f1d2 commit addda42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Payment/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit addda42

Please sign in to comment.