Skip to content

Commit

Permalink
Issue #501
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrojdeCTL committed Sep 13, 2018
1 parent ba508e2 commit 9cd85a4
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,14 @@ else if (status.equals(TaskStatus.STATUSNAME_CLOSED)) {
+ index.substring(0, eq) + "' and index_value='" + index.substring(eq + 1) + "') > 0\n");
}

Map<String,String> indexes = query.getMapFilter("indexes");
if (indexes != null) {
for (String varName : indexes.keySet()) {
where.append(" and (select count(*) from instance_index tidx where tidx.instance_id = ti.task_instance_id and tidx.owner_type='TASK_INSTANCE' and index_key='"
+ varName + "' and index_value='" + indexes.get(varName) + "') > 0\n");
}
}

return where.toString();
}

Expand Down

0 comments on commit 9cd85a4

Please sign in to comment.