mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +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
|
// Options are not indexed, so we must look
|
||||||
for(var i = 0; !found && i < this.options.select_options.length; i++)
|
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(this.options.select_options[i].value == search[j]) found = true;
|
||||||
}
|
}
|
||||||
if(!found)
|
if(!found)
|
||||||
|
Loading…
Reference in New Issue
Block a user