Skip to content

Commit

Permalink
MC-42332: [Magento Cloud] some Invoice and order not loading properly…
Browse files Browse the repository at this point in the history
… after upgrade to 2.4.1

- fixed
  • Loading branch information
o-dubovyk committed Jul 13, 2021
1 parent 6e47ef3 commit d648bdc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ $randomHelper = $block->getData('randomHelper');
$baseAmount = $info['base_amount'];
$rates = $info['rates'];
$isFirst = 1;
$rateRow = 0;
?>

<?php foreach ($rates as $rate): ?>
<tr id="rate-<?= /* @noEscape */ $rate->getId() ?>"
<tr id="rate-<?= $rateRow ?>"
class="summary-details<?= ($isTop ? ' summary-details-first' : '') ?>">
<?php if ($rate['percent'] !== null): ?>
<td class="admin__total-mark">
Expand All @@ -74,10 +75,11 @@ $randomHelper = $block->getData('randomHelper');
</td>
<?php endif; ?>
</tr>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag("display:none;", 'tr#rate-' . $rate->getId()) ?>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag("display:none;", 'tr#rate-' . $rateRow) ?>
<?php
$isFirst = 0;
$isTop = 0;
$rateRow++;
?>
<?php endforeach; ?>
<?php endforeach; ?>
Expand Down

0 comments on commit d648bdc

Please sign in to comment.