Skip to content

Commit 1831d4b

Browse files
author
Viktor Sevch
committed
MC-35765: [2.4.0-beta1] Full Tax Details causes the Order Page to fail
1 parent 5a558f9 commit 1831d4b

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ $taxHelper = $block->getData('taxHelper');
8686
$amount = $info['tax_amount'];
8787
$baseAmount = $info['base_tax_amount'];
8888
$isFirst = 1;
89+
$infoTitle = preg_replace('/[^A-Za-z0-9\-]/', '', $info['title']);
8990
?>
90-
<tr id="info-<?= /* @noEscape */ $info->getCode() ?>"
91+
<tr id="info-<?= /* @noEscape */ $infoTitle ?>"
9192
class="summary-details<?= ($isTop ? ' summary-details-first' : '') ?>">
9293
<?php if ($info['percent'] !== null): ?>
9394
<td class="admin__total-mark">
@@ -98,7 +99,7 @@ $taxHelper = $block->getData('taxHelper');
9899
<?php endif; ?>
99100
<td><?= /* @noEscape */ $block->displayAmount($amount, $baseAmount) ?></td>
100101
</tr>
101-
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag("display:none;", 'tr#info-' . $info->getCode()) ?>
102+
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag("display:none;", 'tr#info-' . $infoTitle) ?>
102103
<?php
103104
$isFirst = 0;
104105
$isTop = 0;

0 commit comments

Comments
 (0)