Skip to content

Commit abb3de3

Browse files
committed
MC-19588: [2.2.x] Fix phtml files with mage-init directives that cannot be statically analyzed
- Fix data-mage-init property in template;
1 parent 19603c9 commit abb3de3

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Msrp/view/base/templates/product/price

1 file changed

+1
-1
lines changed

app/code/Magento/Msrp/view/base/templates/product/price/msrp.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ $priceElementIdPrefix = $block->getPriceElementIdPrefix() ? $block->getPriceElem
9898
<a href="javascript:void(0);"
9999
id="<?= /* @noEscape */ ($popupId) ?>"
100100
class="action map-show-info"
101-
data-mage-init='{"addToCart":<?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode($data) ?>'>
101+
data-mage-init='{"addToCart":<?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode($data) ?>}'>
102102
<?= $block->escapeHtml(__('Click for price')) ?>
103103
</a>
104104
<?php else : ?>

0 commit comments

Comments
 (0)