Skip to content

Commit 4ce3e07

Browse files
committed
Fixing static tests
1 parent 39ecd07 commit 4ce3e07

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/CurrencySymbol/view/adminhtml/templates

1 file changed

+6
-2
lines changed

app/code/Magento/CurrencySymbol/view/adminhtml/templates/grid.phtml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<form id="currency-symbols-form" action="<?= $block->escapeUrl($block->getFormActionUrl()) ?>" method="post">
1313
<input name="form_key" type="hidden" value="<?= $block->escapeHtmlAttr($block->getFormKey()) ?>" />
1414
<fieldset class="admin__fieldset">
15-
<?php foreach ($block->getCurrencySymbolsData() as $code => $data) : ?>
15+
<?php foreach ($block->getCurrencySymbolsData() as $code => $data): ?>
1616
<div class="admin__field _required">
1717
<label class="admin__field-label" for="custom_currency_symbol<?= $block->escapeHtmlAttr($code) ?>">
1818
<span><?= $block->escapeHtml($code) ?> (<?= $block->escapeHtml($data['displayName']) ?>)</span>
@@ -25,9 +25,13 @@
2525
name="custom_currency_symbol[<?= $block->escapeHtmlAttr($code) ?>]"
2626
<?= $data['inherited'] ? 'disabled' : '' ?>>
2727
<div class="admin__field admin__field-option">
28+
<?php
29+
$escapedCode = $block->escapeHtmlAttr($block->escapeJs($code));
30+
$escapedSymbol = $block->escapeJs($data['parentSymbol']);
31+
?>
2832
<input id="custom_currency_symbol_inherit<?= $block->escapeHtmlAttr($code) ?>"
2933
class="admin__control-checkbox" type="checkbox"
30-
onclick="toggleUseDefault(<?= '\'' . $block->escapeHtmlAttr($block->escapeJs($code)) . '\',\'' . $block->escapeJs($data['parentSymbol']) . '\'' ?>)"
34+
onclick="toggleUseDefault(<?= '\'' . $escapedCode . '\',\'' . $escapedSymbol . '\'' ?>)"
3135
<?= $data['inherited'] ? ' checked="checked"' : '' ?>
3236
value="1"
3337
name="inherit_custom_currency_symbol[<?= $block->escapeHtmlAttr($code) ?>]">

0 commit comments

Comments
 (0)