Skip to content

Commit 338e271

Browse files
committed
ACP2E-111: Inconsistent product rating on category page
1 parent a0a76a6 commit 338e271

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Review/view/frontend/templates/helper

1 file changed

+1
-1
lines changed

app/code/Magento/Review/view/frontend/templates/helper/summary.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $urlForm = $block->getReviewsUrl() . '#review-form';
2020
<div class="rating-summary">
2121
<span class="label"><span><?= $block->escapeHtml(__('Rating')) ?>:</span></span>
2222
<div class="rating-result"
23-
id="rating-result_<?= /* @noEscape */ $block->getProduct()->getId() ?>"
23+
id="rating-result_<?= $block->escapeHtmlAttr($block->getProduct()->getId()) ?>"
2424
title="<?= $block->escapeHtmlAttr($rating) ?>%"
2525
>
2626
<span>

0 commit comments

Comments
 (0)