1

Merge pull request #134 from hhu-propra2/fix-group-search-number-of-users

Fix group search number of users
This commit is contained in:
Christoph
2020-03-25 14:48:26 +01:00
committed by GitHub
6 changed files with 53 additions and 29 deletions

View File

@ -199,12 +199,14 @@ public class WebController {
Model model,
@RequestParam(value = "suchbegriff", required = false) String search) throws EventException {
Account account = keyCloakService.createAccountFromPrincipal(token);
List<Group> groupse = new ArrayList<>();
List<Group> groups = new ArrayList<>();
if (search != null) {
groupse = groupService.findGroupWith(search, account);
groups = groupService.findGroupWith(search, account);
}
model.addAttribute("account", account);
model.addAttribute("gruppen", groupse);
model.addAttribute("gruppen", groups);
return "search";
}