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

Merge branch 'malowe/dev/wg-no-match-update' into 'dev'

Add check to return empty list if no matching wg for org when set

See merge request !553
parents cf1a946c 5915979b
Pipeline #2884 passed with stage
in 0 seconds
......@@ -116,6 +116,9 @@ public class OrganizationResource extends AbstractRESTResource {
wrap.setParam(FoundationDBParameterNames.DOCUMENT_IDS.getName(), docids);
} else if(wg == null && StringUtils.isNotBlank(workingGroup)) {
// return empty response if wg was set but no results
return Response.ok(Collections.emptyList()).build();
List<MemberOrganization> orgs = orgService.get(wrap);
if (orgs.isEmpty()) {
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