File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/code/Magento/CurrencySymbol/view/adminhtml/templates Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 12
12
<form id="currency-symbols-form" action="<?= $ block ->escapeUrl ($ block ->getFormActionUrl ()) ?> " method="post">
13
13
<input name="form_key" type="hidden" value="<?= $ block ->escapeHtmlAttr ($ block ->getFormKey ()) ?> " />
14
14
<fieldset class="admin__fieldset">
15
- <?php foreach ($ block ->getCurrencySymbolsData () as $ code => $ data ) : ?>
15
+ <?php foreach ($ block ->getCurrencySymbolsData () as $ code => $ data ): ?>
16
16
<div class="admin__field _required">
17
17
<label class="admin__field-label" for="custom_currency_symbol<?= $ block ->escapeHtmlAttr ($ code ) ?> ">
18
18
<span><?= $ block ->escapeHtml ($ code ) ?> (<?= $ block ->escapeHtml ($ data ['displayName ' ]) ?> )</span>
25
25
name="custom_currency_symbol[<?= $ block ->escapeHtmlAttr ($ code ) ?> ]"
26
26
<?= $ data ['inherited ' ] ? 'disabled ' : '' ?> >
27
27
<div class="admin__field admin__field-option">
28
+ <?php
29
+ $ escapedCode = $ block ->escapeHtmlAttr ($ block ->escapeJs ($ code ));
30
+ $ escapedSymbol = $ block ->escapeJs ($ data ['parentSymbol ' ]);
31
+ ?>
28
32
<input id="custom_currency_symbol_inherit<?= $ block ->escapeHtmlAttr ($ code ) ?> "
29
33
class="admin__control-checkbox" type="checkbox"
30
- onclick="toggleUseDefault(<?= '\'' . $ block -> escapeHtmlAttr ( $ block -> escapeJs ( $ code )) . '\', \'' . $ block -> escapeJs ( $ data [ ' parentSymbol ' ]) . '\'' ?> )"
34
+ onclick="toggleUseDefault(<?= '\'' . $ escapedCode . '\', \'' . $ escapedSymbol . '\'' ?> )"
31
35
<?= $ data ['inherited ' ] ? ' checked="checked" ' : '' ?>
32
36
value="1"
33
37
name="inherit_custom_currency_symbol[<?= $ block ->escapeHtmlAttr ($ code ) ?> ]">
You can’t perform that action at this time.
0 commit comments