Skip to content

Commit 63f8ae6

Browse files
Indrani SonawaneIndrani Sonawane
authored andcommitted
Used escaper to resolve review comment
1 parent 21066b9 commit 63f8ae6

File tree

1 file changed

+8
-7
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/items/column

1 file changed

+8
-7
lines changed

app/code/Magento/Sales/view/adminhtml/templates/items/column/qty.phtml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,46 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
/** @var $escaper \Magento\Framework\Escaper */
67
?>
78
<?php if ($item = $block->getItem()): ?>
89
<table class="qty-table">
910
<tr>
10-
<th><?= $block->escapeHtml(__('Ordered')); ?></th>
11+
<th><?= $escaper->escapeHtml(__('Ordered')); ?></th>
1112
<td><?= (float) $item->getQtyOrdered() ?></td>
1213
</tr>
1314

1415
<?php if ((float)$item->getQtyBackordered()): ?>
1516
<tr>
16-
<th><?= $block->escapeHtml(__('Backordered')); ?></th>
17+
<th><?= $escaper->escapeHtml(__('Backordered')); ?></th>
1718
<td><?= (float) $item->getQtyBackordered() ?></td>
1819
</tr>
19-
<?php endif; ?>
20+
<?php endif; ?>
2021

2122
<?php if ((float)$item->getQtyInvoiced()): ?>
2223
<tr>
23-
<th><?= $block->escapeHtml(__('Invoiced')); ?></th>
24+
<th><?= $escaper->escapeHtml(__('Invoiced')); ?></th>
2425
<td><?= (float) $item->getQtyInvoiced() ?></td>
2526
</tr>
2627
<?php endif; ?>
2728

2829
<?php if ((float)$item->getQtyShipped()): ?>
2930
<tr>
30-
<th><?= $block->escapeHtml(__('Shipped')); ?></th>
31+
<th><?= $escaper->escapeHtml(__('Shipped')); ?></th>
3132
<td><?= (float) $item->getQtyShipped() ?></td>
3233
</tr>
3334
<?php endif; ?>
3435

3536
<?php if ((float)$item->getQtyRefunded()): ?>
3637
<tr>
37-
<th><?= $block->escapeHtml(__('Refunded')); ?></th>
38+
<th><?= $escaper->escapeHtml(__('Refunded')); ?></th>
3839
<td><?= (float) $item->getQtyRefunded() ?></td>
3940
</tr>
4041
<?php endif; ?>
4142

4243
<?php if ((float)$item->getQtyCanceled()): ?>
4344
<tr>
44-
<th><?= $block->escapeHtml(__('Canceled')); ?></th>
45+
<th><?= $escaper->escapeHtml(__('Canceled')); ?></th>
4546
<td><?= (float) $item->getQtyCanceled() ?></td>
4647
</tr>
4748
<?php endif; ?>

0 commit comments

Comments
 (0)