From d7f166a39fba8f75323f86c690e80950c3a87f97 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 25 Jan 2012 08:33:05 +0000 Subject: patched #379 --- framework/Web/Javascripts/TJSON.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'framework') 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 && -- cgit v1.2.3