mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:22 +01:00
Avoid infinite loop looking up accounts
This commit is contained in:
parent
5e44a189cc
commit
7af73c91c4
@ -309,6 +309,10 @@ var et2_selectAccount = et2_selectbox.extend(
|
||||
for(var j = 0; j < search.length; j++)
|
||||
{
|
||||
var found = false;
|
||||
|
||||
// Not having a value to look up causes an infinite loop
|
||||
if(!search[j]) continue;
|
||||
|
||||
// Options are not indexed, so we must look
|
||||
for(var i = 0; !found && i < this.options.select_options.length; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user