Skip to content
Snippets Groups Projects
Commit 77db1dca authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

fix endless loop in Task/Activity-tree

parent d4312997
No related branches found
No related tags found
No related merge requests found
......@@ -48,9 +48,7 @@ function queryChildrenElements (pContextName, pID) {
// Query children
let children = queryChildrenElements("Task", taskResult[i][0]);
for (let i = 0; i < children.length; i++) {
res.push(children[i]);
}
res = res.concat(children);
}
for (let i = 0; i < activityResult.length; i++) {
......@@ -60,9 +58,7 @@ function queryChildrenElements (pContextName, pID) {
// Query children
let children = queryChildrenElements("Activity", activityResult[i][0]);
for (let i = 0; i < children.length; i++) {
res.push(children[i]);
}
res = res.concat(children);
}
return res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment