Skip to content
Snippets Groups Projects
Commit fec97508 authored by srosse's avatar srosse
Browse files

OO-623,OPENOLAT-80: support managed flags in the CourseGroupWebService

parent 4128b2ea
No related branches found
No related tags found
No related merge requests found
......@@ -219,12 +219,10 @@ public class CourseGroupWebService {
bg = bgm.loadBusinessGroup(group.getKey());
bgm.addResourceTo(bg, courseRe);
} else {
String name = group.getName();
String desc = group.getDescription();
Integer min = normalize(group.getMinParticipants());
Integer max = normalize(group.getMaxParticipants());
bg = bgm.createBusinessGroup(ureq.getIdentity(), name, desc, min, max, false, false, courseRe);
bg = bgm.createBusinessGroup(ureq.getIdentity(), group.getName(), group.getDescription(),
group.getExternalId(), group.getManagedFlags(), min, max, false, false, courseRe);
}
GroupVO savedVO = ObjectFactory.get(bg);
return Response.ok(savedVO).build();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment