mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Avoid error if value sent was not a string. Warning is also sent to console by framework, but this prevents errors.
This commit is contained in:
parent
32971ef3cc
commit
5450085a54
@ -122,7 +122,7 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM],
|
||||
set_value: function(_value) {
|
||||
if (!_value) _value = "";
|
||||
if (!this.options.no_lang) _value = this.egw().lang(_value);
|
||||
if (this.options.value && this.options.value.indexOf('%s') != -1)
|
||||
if (this.options.value && (this.options.value+"").indexOf('%s') != -1)
|
||||
{
|
||||
_value = this.options.value.replace(/%s/g, _value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user