mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
Fix infinite loop by using a new counter variable
This commit is contained in:
parent
6985c3d61f
commit
0853f5bd66
@ -494,11 +494,11 @@ var et2_nextmatch_rowProvider = Class.extend(
|
||||
// TODO
|
||||
|
||||
var cat = this.categories[cat_id] || null;
|
||||
for(var i = 0; cat == null && this.categories && i < this.categories.length; i++)
|
||||
for(var j = 0; cat == null && this.categories && j < this.categories.length; j++)
|
||||
{
|
||||
if(this.categories[i] && this.categories[i].value && this.categories[i].value == cat_id)
|
||||
if(this.categories[j] && this.categories[j].value && this.categories[j].value == cat_id)
|
||||
{
|
||||
cat = this.categories[i];
|
||||
cat = this.categories[j];
|
||||
}
|
||||
}
|
||||
// Create class
|
||||
|
Loading…
Reference in New Issue
Block a user