Skip to content

Commit c31331f

Browse files
committed
AC-10528:Fix for Order Invoice Comment
1 parent 6a5dcee commit c31331f

File tree

1 file changed

+14
-21
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/view/tab

1 file changed

+14
-21
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/history.phtml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,23 @@
55
*/
66

77
/** @var \Magento\Sales\Block\Adminhtml\Order\View\Tab\History $block */
8-
/** @var \Magento\Framework\Escaper $escaper */
98
?>
109
<section class="admin__page-section edit-order-comments">
1110
<ul class="note-list">
12-
<?php foreach ($block->getFullHistory() as $_item): ?>
11+
<?php foreach ($block->getFullHistory() as $_item) : ?>
1312
<li class="note-list-item">
1413
<span class="note-list-date"><?= /* @noEscape */ $block->getItemCreatedAt($_item) ?></span>
1514
<span class="note-list-time"><?= /* @noEscape */ $block->getItemCreatedAt($_item, 'time') ?></span>
1615
<span class="note-list-status"><?= /* @noEscape */ $block->getItemTitle($_item) ?></span>
17-
<?php if ($block->isItemNotified($_item, false)): ?>
16+
<?php if ($block->isItemNotified($_item, false)) : ?>
1817
<span class="note-list-customer">
19-
<?= $escaper->escapeHtml(__('Customer')) ?>
20-
<?php if ($block->isCustomerNotificationNotApplicable($_item)): ?>
21-
<span class="note-list-customer-notapplicable">
22-
<?= $escaper->escapeHtml(__('Notification Not Applicable')) ?>
23-
</span>
24-
<?php elseif ($block->isItemNotified($_item)): ?>
25-
<span class="note-list-customer-notified">
26-
<?= $escaper->escapeHtml(__('Notified')) ?>
27-
</span>
28-
<?php else: ?>
29-
<span class="note-list-customer-not-notified">
30-
<?= $escaper->escapeHtml(__('Not Notified')) ?>
31-
</span>
18+
<?= $block->escapeHtml(__('Customer')) ?>
19+
<?php if ($block->isCustomerNotificationNotApplicable($_item)) : ?>
20+
<span class="note-list-customer-notapplicable"><?= $block->escapeHtml(__('Notification Not Applicable')) ?></span>
21+
<?php elseif ($block->isItemNotified($_item)) : ?>
22+
<span class="note-list-customer-notified"><?= $block->escapeHtml(__('Notified')) ?></span>
23+
<?php else : ?>
24+
<span class="note-list-customer-not-notified"><?= $block->escapeHtml(__('Not Notified')) ?></span>
3225
<?php endif; ?>
3326
</span>
3427
<?php endif; ?>
@@ -37,16 +30,16 @@
3730
</ul>
3831
<div class="edit-order-comments-block">
3932
<div class="edit-order-comments-block-title">
40-
<?= $escaper->escapeHtml(__('Notes for this Order')) ?>
33+
<?= $block->escapeHtml(__('Notes for this Order')) ?>
4134
</div>
42-
<?php foreach ($block->getFullHistory() as $_item): ?>
43-
<?php if ($_comment = $block->getItemComment($_item)): ?>
35+
<?php foreach ($block->getFullHistory() as $_item) : ?>
36+
<?php if ($_comment = $block->getItemComment($_item)) : ?>
4437
<div class="comments-block-item">
4538
<div class="comments-block-item-comment">
46-
<?= /* @noEscape */ $escaper->escapeHtml($_comment) ?>
39+
<?= /* @noEscape */ $_comment ?>
4740
</div>
4841
<span class="comments-block-item-date-time">
49-
<?= $escaper->escapeHtml(__('Comment added')) ?>
42+
<?= $block->escapeHtml(__('Comment added')) ?>
5043
<?= /* @noEscape */ $block->getItemCreatedAt($_item) ?>
5144
<?= /* @noEscape */ $block->getItemCreatedAt($_item, 'time') ?>
5245
</span>

0 commit comments

Comments
 (0)