Avoid infinite loop looking up accounts

This commit is contained in:
Nathan Gray 2014-05-27 15:33:26 +00:00
parent 5e44a189cc
commit 7af73c91c4

View File

@ -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++)
{