mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
only call replace on _value of type string, otherwise (eg. null) gives exception
This commit is contained in:
parent
f2cdcefda1
commit
1312a397f1
@ -401,7 +401,7 @@ var et2_date_duration = et2_date.extend({
|
||||
// use decimal separator from user prefs
|
||||
var sep = '.';
|
||||
var format = this.egw().preference('number_format');
|
||||
if (format && (sep = format[0]) && sep != '.')
|
||||
if (typeof _value == 'string' && format && (sep = format[0]) && sep != '.')
|
||||
{
|
||||
_value = _value.replace('.',sep);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user