Fixed entities not being excluded when using the "exclude" parameter

This commit is contained in:
Intelli 2021-07-20 14:59:57 -06:00
parent e68daef7db
commit 38f1e304e0
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ public class Lookup extends Queue {
queryEntity = queryEntity.replace("type NOT IN(" + (excludeBlock.length() > 0 ? excludeBlock : "0") + ")", "type NOT IN(" + (excludeEntity.length() > 0 ? excludeEntity : "0") + ")");
}
String baseQuery = (includeEntity.length() > 0 ? queryEntity : queryBlock);
String baseQuery = ((!includeEntity.isEmpty() || !excludeEntity.isEmpty()) ? queryEntity : queryBlock);
if (limitOffset > -1 && limitCount > -1) {
queryLimit = " LIMIT " + limitOffset + ", " + limitCount + "";
}