Skip to content

Commit 24a242f

Browse files
ENGCOM-9169: fix #30094 function call on array #30516
- Merge Pull Request #30516 from Morgy93/magento2:fix-30094 - Merged commits: 1. 40df5c8 2. b7e6429
2 parents 39e1300 + b7e6429 commit 24a242f

File tree

1 file changed

+5
-2
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/totals

1 file changed

+5
-2
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/totals/tax.phtml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ $randomHelper = $block->getData('randomHelper');
5959
?>
6060

6161
<?php foreach ($rates as $rate): ?>
62-
<tr id="rate-<?= /* @noEscape */ $rate->getId() ?>"
62+
<?php
63+
$rateId = $randomHelper->getRandomString(20);
64+
?>
65+
<tr id="rate-<?= /* @noEscape */ $rateId ?>"
6366
class="summary-details<?= ($isTop ? ' summary-details-first' : '') ?>">
6467
<?php if ($rate['percent'] !== null): ?>
6568
<td class="admin__total-mark">
@@ -74,7 +77,7 @@ $randomHelper = $block->getData('randomHelper');
7477
</td>
7578
<?php endif; ?>
7679
</tr>
77-
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag("display:none;", 'tr#rate-' . $rate->getId()) ?>
80+
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag("display:none;", 'tr#rate-' . $rateId) ?>
7881
<?php
7982
$isFirst = 0;
8083
$isTop = 0;

0 commit comments

Comments
 (0)