Code

Updated ogroup handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Sep 2010 07:16:17 +0000 (07:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Sep 2010 07:16:17 +0000 (07:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19655 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/ogroups/class_ogroup.inc

index aff73709dda51298096d1d3d94a7f573b22919e7..4259cce195bc0fabcd21a2778ba3ce05ee9ed922 100644 (file)
@@ -700,11 +700,14 @@ class ogroup extends plugin
     /* Save to LDAP */
     function save()
     {
-        plugin::save();
-
         // Do not save members if we don't want to. 
         // This may be the case if we've copied an ogroup containing systems!
-        if(!$this->copyMembers) $this->member = array();
+        if(!$this->copyMembers){
+            $this->member = array();
+            $this->reload();
+        }
+
+        plugin::save();
 
         /* Move members to target array */
         $this->attrs['member'] =array();