Skip to content

Commit 89e1ef5

Browse files
author
Viktor Tymchynskyi
committed
MAGETWO-43503: Currency symbol is displayed outside "Price" input on "create Downloadable Product" Admin page
- Add escape html
1 parent 78d693d commit 89e1ef5

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Downloadable/view/adminhtml/templates/product/edit/downloadable

1 file changed

+1
-1
lines changed

app/code/Magento/Downloadable/view/adminhtml/templates/product/edit/downloadable/links.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ require([
109109
'<td class="col-price">'+
110110
'<div class="admin__control-addon">' +
111111
'<input type="text" id="downloadable_link_<%- data.id %>_price_value" class="input-text admin__control-text validate-number link-prices<?php if ($block->getCanEditPrice() === false) : ?> disabled<?php endif; ?>" name="downloadable[link][<%- data.id %>][price]" value="<%- data.price %>"<?php if ($block->getCanEditPrice() === false) : ?> disabled="disabled"<?php endif; ?> /> ' +
112-
'<label class="admin__addon-prefix"><span><?php /* @escapeNotVerified */ echo $block->getBaseCurrencySymbol($_product->getStoreId()) ?></span></label>' +
112+
'<label class="admin__addon-prefix"><span><?php echo $block->escapeHtml($block->getBaseCurrencySymbol($_product->getStoreId())) ?></span></label>' +
113113
'</div>' +
114114
<?php if ($_product->getStoreId() && $block->getIsPriceWebsiteScope()) : ?>
115115
'<div class="admin__field admin__field-option">'+

0 commit comments

Comments
 (0)