Skip to content

Commit

Permalink
fixed formatter to respect grouping separator for currency format
Browse files Browse the repository at this point in the history
fixes #12331
  • Loading branch information
cebe committed Aug 25, 2016
1 parent 3a06474 commit e0bce01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -38,6 +38,7 @@ Yii Framework 2 Change Log
- Bug #12100: Fixed `yii\filters\HttpCache` was sending an empty Pragma header (sergeymakinen)
- Bug #12107: Fixed REST Serializer to validate input for 'expand' and 'fields' parameter, which crashed on array input (njspok, cebe)
- Enh #12230: Allows BaseHtml::activeListInput to override the field value (RangelReale)
- Bug #12331: Fixed bug with incorrect currency formatter output, when `$thousandSeparator` was explicitly set (cebe)


2.0.9 July 11, 2016
Expand Down
1 change: 1 addition & 0 deletions i18n/Formatter.php
Expand Up @@ -1350,6 +1350,7 @@ protected function createNumberFormatter($style, $decimals = null, $options = []
}
if ($this->thousandSeparator !== null) {
$formatter->setSymbol(NumberFormatter::GROUPING_SEPARATOR_SYMBOL, $this->thousandSeparator);
$formatter->setSymbol(NumberFormatter::MONETARY_GROUPING_SEPARATOR_SYMBOL, $this->thousandSeparator);
}
foreach ($this->numberFormatterSymbols as $name => $symbol) {
$formatter->setSymbol($name, $symbol);
Expand Down

0 comments on commit e0bce01

Please sign in to comment.