Code

Updated ogroup member removal
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Apr 2010 07:01:19 +0000 (07:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Apr 2010 07:01:19 +0000 (07:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17726 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 08e8af36cdaf5a5747a1a951c5010c7c0c61198c..a936aaaf49be43e93147b2ad2ca0ff79312729fd 100644 (file)
@@ -171,13 +171,19 @@ class ogroup extends plugin
       $this->reload(); 
     }else{
 
-      // Act on list modifications 
-      $this->memberListing->save_object();
-      $action = $this->memberListing->getAction();
-      if($action['action'] == 'delete'){
-        $this->member = $this->memberListing->getMaintainedData();
-        $this->reload();
-      }
+        // Act on list modifications 
+        $this->memberListing->save_object();
+        $action = $this->memberListing->getAction();
+        if($action['action'] == 'delete'){
+            foreach($action['targets'] as $id){
+                $value = $this->memberListing->getKey($id);
+                $this->objects["$value"]= $this->memberList[$value];                  
+                unset ($this->memberList["$value"]);                                  
+                unset ($this->member["$value"]);                                      
+            }
+            $this->reload();
+        }
+
 
       /* Add objects to group */
       if (isset($_POST['objectSelect_save']) && $this->objectSelect instanceOf objectSelect){