Skip to content

Commit

Permalink
apply the sort order (#4214)
Browse files Browse the repository at this point in the history
  • Loading branch information
meek0 committed Aug 27, 2021
1 parent 9a9edbd commit ecb978f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public ModelAndView network(@PathVariable String id, @RequestParam(value = "draf
}

Map<String, List<Membership>> membershipMap = personService.getNetworkMembershipMap(network.getId());
params.put("memberships", membershipMap);
params.put("memberships", personService.setMembershipOrder(network.getMembershipSortOrder(), membershipMap));

return new ModelAndView("network", params);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private BaseStudy getStudy(String id, String shareKey) {
study = draftStudyService.findStudy(id);
if (study == null) throw NoSuchStudyException.withId(id);
checkPermission("/draft/" + ((study instanceof Study) ? "individual-study" : "harmonization-study"), "VIEW", id, shareKey);
study.setMemberships(personService.getStudyMembershipMap(id));
study.setMemberships(personService.setMembershipOrder(study.getMembershipSortOrder(), personService.getStudyMembershipMap(id)));
}
return study;
}
Expand Down

0 comments on commit ecb978f

Please sign in to comment.