From: hickert Date: Tue, 20 Apr 2010 07:01:19 +0000 (+0000) Subject: Updated ogroup member removal X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b3d6ceac910284e5a3c18e6f73e1f02b7ea15f9;p=gosa.git Updated ogroup member removal git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17726 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 08e8af36c..a936aaaf4 100644 --- a/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -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){