mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Avoid errors for invalid account options
This commit is contained in:
parent
003b090103
commit
9117771ea2
@ -136,7 +136,7 @@ var et2_selectAccount = et2_selectbox.extend(
|
||||
{
|
||||
this.set_multiple(true, this.options.expand_multiple_rows);
|
||||
}
|
||||
|
||||
|
||||
if(this.options.multiple)
|
||||
{
|
||||
this._open_multi_search(e);
|
||||
@ -258,6 +258,11 @@ var et2_selectAccount = et2_selectbox.extend(
|
||||
// Options are not indexed, so we must look
|
||||
for(var i = 0; !found && i < this.options.select_options.length; i++)
|
||||
{
|
||||
if (typeof this.options.select_options[i] != 'object')
|
||||
{
|
||||
egw.debug('warn',this.id + ' wrong option '+i+' this.options.select_options=', this.options.select_options);
|
||||
continue;
|
||||
}
|
||||
if(this.options.select_options[i].value == search[j]) found = true;
|
||||
}
|
||||
if(!found)
|
||||
|
Loading…
Reference in New Issue
Block a user