mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 03:52:41 +00:00
Test case and Fix for: Number::currency() issue
Fixes currency() for custom formats and numbers between -1 and 1. Fixes #2489 Conflicts: lib/Cake/Test/Case/View/Helper/NumberHelperTest.php lib/Cake/View/Helper/NumberHelper.php
This commit is contained in:
parent
2c239cc851
commit
c95ab282dc
2 changed files with 11 additions and 6 deletions
|
@ -59,7 +59,7 @@ class NumberHelper extends AppHelper {
|
|||
*/
|
||||
protected $_currencyDefaults = array(
|
||||
'wholeSymbol' => '', 'wholePosition' => 'before', 'fractionSymbol' => '', 'fractionPosition' => 'after',
|
||||
'zero' => '0', 'places' => 2, 'thousands' => ',', 'decimals' => '.','negative' => '()', 'escape' => true
|
||||
'zero' => '0', 'places' => 2, 'thousands' => ',', 'decimals' => '.','negative' => '()', 'escape' => true,
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue