Skip to content

Commit a6f4b91

Browse files
committed
Merge remote-tracking branch 'origin/MC-15974' into borg-security-2.3
2 parents 874e319 + e3c9977 commit a6f4b91

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/action/select-payment-method.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ define([
1212
'use strict';
1313

1414
return function (paymentMethod) {
15+
paymentMethod.__disableTmpl = {
16+
title: true
17+
};
18+
1519
quote.paymentMethod(paymentMethod);
1620
};
1721
});

app/code/Magento/Payment/Ui/Component/Listing/Column/Method/Options.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67
namespace Magento\Payment\Ui\Component\Listing\Column\Method;
78

89
/**
@@ -41,6 +42,14 @@ public function toOptionArray()
4142
if ($this->options === null) {
4243
$this->options = $this->paymentHelper->getPaymentMethodList(true, true);
4344
}
45+
46+
array_walk(
47+
$this->options,
48+
function (&$item) {
49+
$item['__disableTmpl'] = true;
50+
}
51+
);
52+
4453
return $this->options;
4554
}
4655
}

app/code/Magento/Ui/view/base/web/js/grid/filters/filters.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ define([
274274
filter = utils.extend({}, filters.base, filter);
275275
//Accepting labels as is.
276276
filter.__disableTmpl = {
277-
label: 1
277+
label: 1,
278+
options: 1
278279
};
279280

280281
filter = utils.template(filter, {

0 commit comments

Comments
 (0)