Skip to content

Commit 70d6120

Browse files
MAGETWO-59789: Image Swatch size change not working
- Add @NoEscape annotation for json output
1 parent f380abf commit 70d6120

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Swatches/view/frontend/templates/product/view

1 file changed

+1
-2
lines changed

app/code/Magento/Swatches/view/frontend/templates/product/view/renderer.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"mediaCallback": "<?= /* @escapeNotVerified */ $block->getMediaCallback() ?>",
2020
"gallerySwitchStrategy": "<?php /* @escapeNotVerified */ echo $block->getVar('gallery_switch_strategy',
2121
'Magento_ConfigurableProduct') ?: 'replace'; ?>",
22-
"jsonSwatchImageSizeConfig": <?php /* @escapeNotVerified */
23-
echo $block->getJsonSwatchSizeConfig() ?>
22+
"jsonSwatchImageSizeConfig": <?php /* @noEscape */ echo $block->getJsonSwatchSizeConfig() ?>
2423
}
2524
},
2625
"*" : {

0 commit comments

Comments
 (0)