mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
key can be 0 or "" too, therefor need to check if attribute value exists
This commit is contained in:
parent
e53f781610
commit
90a9df3d1e
@ -637,12 +637,12 @@ var et2_selectbox = et2_inputWidget.extend(
|
||||
{
|
||||
// Allow some special extras for objects by passing the whole thing
|
||||
_options[key]["label"] = _options[key]["label"] ? _options[key]["label"] : "";
|
||||
this._appendMultiOption(_options[key].value ? _options[key].value : key,
|
||||
this._appendMultiOption(typeof _options[key].value != 'undefined' ? _options[key].value : key,
|
||||
_options[key], _options[key]["title"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._appendOptionElement(_options[key].value ? _options[key].value : key,
|
||||
this._appendOptionElement(typeof _options[key].value != 'undefined' ? _options[key].value : key,
|
||||
_options[key]["label"] ? _options[key]["label"] : "",
|
||||
_options[key]["title"] ? _options[key]["title"] : "");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user