Skip to content

Commit

Permalink
fix NumberFormatter initialization when no currency is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartlomiejsz committed Mar 18, 2019
1 parent fda4377 commit b2004c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Locale/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function getPriceFormat($localeCode = null, $currencyCode = null)
}

$formatter = new \NumberFormatter(
$localeCode . '@currency=' . $currency->getCode(),
$currency->getCode() ? $localeCode . '@currency=' . $currency->getCode() : $localeCode,
\NumberFormatter::CURRENCY
);
$format = $formatter->getPattern();
Expand Down

0 comments on commit b2004c3

Please sign in to comment.