Skip to content

Commit 4660956

Browse files
Correct label for the "Notes for this Order" dropdown
1 parent 69ef9da commit 4660956

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/Sales/Model/Order/Config.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ public function getStateStatuses($state, $addLabels = true)
206206
return $this->stateStatuses[$key];
207207
}
208208
$statuses = [];
209+
$area = $this->state->getAreaCode();
209210

210211
if (!is_array($state)) {
211212
$state = [$state];
@@ -217,7 +218,7 @@ public function getStateStatuses($state, $addLabels = true)
217218
foreach ($collection as $item) {
218219
$status = $item->getData('status');
219220
if ($addLabels) {
220-
$statuses[$status] = $item->getStoreLabel();
221+
$statuses[$status] = $area == 'adminhtml' ? $item->getLabel() : $item->getStoreLabel();
221222
} else {
222223
$statuses[] = $status;
223224
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
// @codingStandardsIgnoreFile
8-
8+
/** @var \Magento\Sales\Block\Adminhtml\Order\View\History $block */
99
?>
1010
<div id="order_history_block" class="edit-order-comments">
1111
<?php if ($block->canAddComment()):?>

0 commit comments

Comments
 (0)