Skip to content

Commit

Permalink
MAGETWO-83959: Issue: 3596. Resolve Notice with undefined index 'value'
Browse files Browse the repository at this point in the history
#12296

 - Merge Pull Request #12296 from madonzy/magento2:hotfix/3596-undevined-index-value-in-order-view-2.2
 - Merged commits:
   1. addda42
  • Loading branch information
Oleksii Korshenko committed Nov 16, 2017
2 parents 7ea830f + addda42 commit aef9714
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 aef9714

Please sign in to comment.