Skip to content

Commit

Permalink
AB#1007 Fix person search within multiple organizations
Browse files Browse the repository at this point in the history
Fixes commit c0626c2
  • Loading branch information
gjvoosten committed May 27, 2024
1 parent 0dfbc4b commit ac0659a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected void buildQuery(Set<String> subFields, PersonSearchQuery query) {
qb.addSelectClause(getTableFields(subFields));
qb.addFromClause("people");

if (query.getOrgUuid() != null || query.getLocationUuid() != null
if (!Utils.isEmptyOrNull(query.getOrgUuid()) || query.getLocationUuid() != null
|| query.getMatchPositionName() || !Utils.isEmptyOrNull(query.getPositionType())) {
qb.addFromClause("LEFT JOIN positions ON people.uuid = positions.\"currentPersonUuid\"");
}
Expand Down

0 comments on commit ac0659a

Please sign in to comment.