Skip to content
Snippets Groups Projects
Verified Commit ab88d92e authored by Timm Fitschen's avatar Timm Fitschen
Browse files

FIX: find any version of entity ...

parent e48c9acf
No related branches found
No related tags found
No related merge requests found
......@@ -272,7 +272,7 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
applyQueryTemplates(this, getSourceSet());
}
if (this.role != null) {
if (this.role != null && this.role != Role.ENTITY) {
final RoleFilter roleFilter = new RoleFilter(this.role, "=", this.versioned);
roleFilter.apply(this);
}
......@@ -324,7 +324,8 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
final Query subQuery = new Query(q.getValue(), query.getUser());
subQuery.setAccess(query.getAccess());
subQuery.parse();
// TODO versioning is set to false here (hard) it this the best way to do it?
// versioning for QueryTemplates is not supported and probably never will.
final String subResultSet = subQuery.executeStrategy(false);
// ... and merge the resultSets.
......
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