mirror of
https://github.com/NaN-tic/sao-base.git
synced 2023-12-14 03:13:01 +01:00
Ensure Float.get_client returns a string
otherwise 0 could be evaluated as False.
This commit is contained in:
parent
b08b3bf987
commit
aca576b860
|
@ -1544,7 +1544,7 @@
|
|||
if (digits) {
|
||||
return (value * factor).toFixed(digits[1]);
|
||||
} else {
|
||||
return (value * factor);
|
||||
return '' + (value * factor);
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
|
|
|
@ -2431,7 +2431,7 @@
|
|||
if (record) {
|
||||
var value = record.model.fields[this.field_name]
|
||||
.get_client(record, this.factor);
|
||||
this.input.val(value || '');
|
||||
this.input.val(value);
|
||||
} else {
|
||||
this.input.val('');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue