Skip to content

Commit

Permalink
* Update states labels in Order Status grid.
Browse files Browse the repository at this point in the history
  • Loading branch information
madbounce committed Sep 27, 2019
1 parent 71b0142 commit afb437b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/Sales/Block/Status/Grid/Column/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public function getFrameCallback()
*/
public function decorateState($value, $row, $column, $isExport)
{
$status = $row->getStatus();
if ($value) {
$cell = $value . '[' . $this->_config->getStateLabelByStateAndStatus($value, $status) . ']';
$states = $this->_config->getStates();
if (isset($states[$value])) {
$cell = $value . '[' . $states[$value] . ']';
} else {
$cell = $value;
}
Expand Down

0 comments on commit afb437b

Please sign in to comment.