Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Evolveum/midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Sep 29, 2021
2 parents a7d9271 + 76ce05d commit 55f13fe
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,15 @@ public Predicate process(RefFilter filter) {
SqlQueryContext<?, Q, R> refContext = context.subquery(referenceMapping);
SQLQuery<?> subquery = refContext.sqlQuery();
Q ref = refContext.path();
return subquery
subquery = subquery
.where(referenceMapping.correlationPredicate().apply(context.path(), ref))
.where(new RefItemFilterProcessor(
context, ref.targetOid, ref.targetType, ref.relationId, null)
.process(filter))
.exists();
.process(filter));
if (filter.getValues() == null) {
// If values == null, we search for all items without reference
return subquery.notExists();
}
return subquery.exists();
}
}

0 comments on commit 55f13fe

Please sign in to comment.