mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 20:08:34 +01:00
Check if the given options are type of array or object before proceeding of translation. Fix bug "cannot assign to read only property '0' of string" in tracker site configuration.
This commit is contained in:
parent
d1aef81c59
commit
50697efe55
@ -800,7 +800,7 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend(
|
|||||||
if(_options[key]["label"]) _options[key]["label"] = this.egw().lang(_options[key]["label"]);
|
if(_options[key]["label"]) _options[key]["label"] = this.egw().lang(_options[key]["label"]);
|
||||||
if(_options[key]["title"]) _options[key]["title"] = this.egw().lang(_options[key]["title"]);
|
if(_options[key]["title"]) _options[key]["title"] = this.egw().lang(_options[key]["title"]);
|
||||||
}
|
}
|
||||||
else
|
else if(_options.lenght>0 || typeof _options === 'object')
|
||||||
{
|
{
|
||||||
_options[key] = this.egw().lang(_options[key]);
|
_options[key] = this.egw().lang(_options[key]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user