mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Avoid errors for invalid account options
This commit is contained in:
parent
003b090103
commit
9117771ea2
@ -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