From: hickert Date: Mon, 28 Jan 2008 14:40:02 +0000 (+0000) Subject: Updated ogroup. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b171849046fc8d337ce0e5cdc43a36ee51d1315d;p=gosa.git Updated ogroup. -Removed duplicated add & remove git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8623 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc index 5e1dec7ae..56f962809 100644 --- a/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -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();