From fec9750822fc2816407e0bf5178c598575ffe9fa Mon Sep 17 00:00:00 2001
From: srosse <none@none>
Date: Mon, 5 Aug 2013 13:27:18 +0200
Subject: [PATCH] OO-623,OPENOLAT-80: support managed flags in the
 CourseGroupWebService

---
 .../restapi/repository/course/CourseGroupWebService.java    | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/olat/restapi/repository/course/CourseGroupWebService.java b/src/main/java/org/olat/restapi/repository/course/CourseGroupWebService.java
index 320c88c5ce3..6c1f38c7be4 100644
--- a/src/main/java/org/olat/restapi/repository/course/CourseGroupWebService.java
+++ b/src/main/java/org/olat/restapi/repository/course/CourseGroupWebService.java
@@ -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();
-- 
GitLab