Skip to content

Commit

Permalink
Fixed issue #10211: Thousands separator - numeric input and multiple …
Browse files Browse the repository at this point in the history
…numeric input in the same group
  • Loading branch information
olleharstedt committed Feb 22, 2016
1 parent 34522cb commit c11fe85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -8530,8 +8530,10 @@ static function ProcessCurrentResponses()
}
if ($radixchange && isset($LEM->knownVars[$sq]['onlynum']) && $LEM->knownVars[$sq]['onlynum']=='1')
{
// convert from comma back to decimal
$value = implode('.',explode(',',$value));
// Convert from comma back to decimal
// Also make sure to be able to convert numbers like 1.100,10
$value = preg_replace('|\.|', '', $value);
$value = preg_replace('|\,|', '\.', $value);
}
switch($type)
{
Expand Down

0 comments on commit c11fe85

Please sign in to comment.