[FIX] Fixed wrong digits format issue for float fields when thousand separator is '.'
The function was returning the number value directly before proceeding to any formatting.
This commit is contained in:
parent
cd94f10e1d
commit
d0ef1b938d
|
@ -233,10 +233,7 @@ instance.web.parse_value = function (value, descriptor, value_if_empty) {
|
||||||
throw new Error(_.str.sprintf(_t("'%s' is not a correct integer"), value));
|
throw new Error(_.str.sprintf(_t("'%s' is not a correct integer"), value));
|
||||||
return tmp;
|
return tmp;
|
||||||
case 'float':
|
case 'float':
|
||||||
var tmp = Number(value);
|
var tmp;
|
||||||
if (!isNaN(tmp))
|
|
||||||
return tmp;
|
|
||||||
|
|
||||||
var tmp2 = value;
|
var tmp2 = value;
|
||||||
do {
|
do {
|
||||||
tmp = tmp2;
|
tmp = tmp2;
|
||||||
|
|
Loading…
Reference in New Issue