Code

Updated ogroup.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 28 Jan 2008 14:40:02 +0000 (14:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 28 Jan 2008 14:40:02 +0000 (14:40 +0000)
-Removed duplicated add & remove

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8623 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 5e1dec7ae4113b6f7d64c8df6c33587f1cb3a738..56f96280947c145bd39e8ce7a44eb3d1d8320bf2 100644 (file)
@@ -172,33 +172,6 @@ class ogroup extends plugin
       return ($display);
     }
 
-    /* Delete objects from group */
-    if (isset($_POST['delete_membership']) && isset($_POST['members'])){
-      foreach ($_POST['members'] as $value){
-        if(isset($this->memberList[$value])){
-          $this->objects["$value"]= $this->memberList[$value];
-          unset ($this->memberList["$value"]);
-          unset ($this->member["$value"]);
-          uasort ($this->objects, 'sort_list');
-          reset ($this->objects);
-        }
-      }
-      $this->reload();
-    }
-
-    /* Add objects to group */
-    if (isset($_POST['add_object_finish']) && isset($_POST['objects'])){
-      foreach ($_POST['objects'] as $value){
-        if(isset($this->objects[$value])){
-          $this->memberList["$value"]= $this->objects[$value];
-          $this->member["$value"]= $value;
-          unset ($this->objects[$value]);
-          uasort ($this->memberList, 'sort_list');
-          reset ($this->memberList);
-        }
-      }
-      $this->reload();
-    }
 
     /* Load templating engine */
     $smarty= get_smarty();