Skip to content

Commit

Permalink
Fix overriding of payment methods in getPaymentMethodList
Browse files Browse the repository at this point in the history
Fixes Issue magento#13460, keeps changes from pull request magento#12284
  • Loading branch information
mashb1t authored and mzeis committed May 10, 2018
1 parent b16dfc6 commit ce811f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/Magento/Payment/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ 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;
if (!isset($labelValues[$code]['value'])) {
$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 ce811f9

Please sign in to comment.