Skip to content
Snippets Groups Projects

Development

1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
@@ -107,6 +107,10 @@ public class StudentGroupService {
@@ -107,6 +107,10 @@ public class StudentGroupService {
group.getMembers().add(candidate);
group.getMembers().add(candidate);
}
}
 
if (candidate.getPerson().division(group.getModule()).isEmpty()
 
&& !group.getModule().getDivisions().isEmpty()) {
 
candidate.getPerson().getDivisions().add(group.getModule().getDivisions().get(0));
 
}
candidate.getPerson().division(group.getModule())
candidate.getPerson().division(group.getModule())
.filter(md -> (candidate.getType() == RoleType.STUDENT && group.isEmpty()) ||
.filter(md -> (candidate.getType() == RoleType.STUDENT && group.isEmpty()) ||
(!group.isFull() && md.equals(group.getDivision())))
(!group.isFull() && md.equals(group.getDivision())))
Loading