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

Merge branch 'malowe/dev/no-docid-wg-lookup-fix' into 'dev'

Add check to make sure wg has docids for org matching

See merge request !555
parents 82748de9 ea4d6889
Pipeline #2894 passed with stage
in 0 seconds
......@@ -115,6 +115,10 @@ public class OrganizationResource extends AbstractRESTResource {
if (wg.getResources().getParticipationAgreements().getOrganization() != null) {
// 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