Skip to content

Commit

Permalink
[TASK] Fix overriding of payment methods in getPaymentMethodList
Browse files Browse the repository at this point in the history
Fixes Issue #13460, keeps changes from pull request #12284
  • Loading branch information
mashb1t committed May 7, 2018
1 parent 922b391 commit 7d47324
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 7d47324

Please sign in to comment.