Skip to content

Commit

Permalink
Missing fallback on AREA_FRONTEND when area is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix128 committed Oct 25, 2018
1 parent bd80b1a commit 2e634e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/Magento/Sales/Model/Order/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ private function getStatusLabelForArea(string $code, string $area): string
*/
public function getStatusLabel($code)
{
return $this->getStatusLabelForArea($code, $this->state->getAreaCode());
$area = $this->state->getAreaCode() ?: \Magento\Framework\App\Area::AREA_FRONTEND;
return $this->getStatusLabelForArea($code, $area);
}

/**
Expand Down

0 comments on commit 2e634e4

Please sign in to comment.