mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
fixed not working precistion display
This commit is contained in:
parent
8dc163f04f
commit
1dc2c88059
@ -1113,7 +1113,7 @@ class etemplate extends boetemplate
|
||||
if (($type == 'float' || !is_numeric($pre)) && $value && $pre)
|
||||
{
|
||||
$value = str_replace(array(' ',','),array('','.'),$value);
|
||||
$value = is_numeric($pre) ? round($value,$pre) : sprintf($pre,$value);
|
||||
$value = is_numeric($pre) ? number_format($value,$pre,'.','') : sprintf($pre,$value);
|
||||
}
|
||||
$cell_options .= ',,'.($cell['type'] == 'int' ? '/^-?[0-9]*$/' : '/^-?[0-9]*[,.]?[0-9]*$/');
|
||||
// fall-through
|
||||
|
Loading…
Reference in New Issue
Block a user