summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/Javascripts/TJSON.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/TJSON.php b/framework/Web/Javascripts/TJSON.php
index e0d31b05..0b119a99 100644
--- a/framework/Web/Javascripts/TJSON.php
+++ b/framework/Web/Javascripts/TJSON.php
@@ -143,7 +143,11 @@ class TJSON
case 'double':
case 'float':
- return (float) $var;
+ $locale=localeConv();
+ if($locale['decimal_point']=='.')
+ return (float) $var;
+ else
+ return str_replace($locale['decimal_point'], '.', (float)$var);
case 'string':
if (($g=Prado::getApplication()->getGlobalization(false))!==null &&