Commit f70372d9 authored by Martin Lowe's avatar Martin Lowe 🇨🇦
Browse files

Merge branch 'malowe/dev/1.4.3' into 'master'

Malowe/dev/1.4.3

See merge request !556
parents 2e4f197b 934018ce
Pipeline #2897 passed with stage
in 0 seconds
......@@ -115,6 +115,10 @@ public class OrganizationResource extends AbstractRESTResource {
if (wg.getResources().getParticipationAgreements().getOrganization() != null) {
docids.add(wg.getResources().getParticipationAgreements().getOrganization().getDocumentId());
}
// if there are no docids, we can never match an org
if (docids.isEmpty()) {
return Response.ok(Collections.emptyList()).build();
}
wrap.setParam(FoundationDBParameterNames.DOCUMENT_IDS.getName(), docids);
} else if(wg == null && StringUtils.isNotBlank(workingGroup)) {
// return empty response if wg was set but no results
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment