mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 13:00:14 +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++)
|
for(var j = 0; j < search.length; j++)
|
||||||
{
|
{
|
||||||
var found = false;
|
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
|
// 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++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user