GitLab will be shut down on June 25 to move to a new facility.

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

Add check to make sure wg has docids for org matching

parent 82748de9
Pipeline #2892 passed with stage
......@@ -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