From: hickert Date: Wed, 24 Oct 2007 13:52:51 +0000 (+0000) Subject: Reimplemented remove X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fa4461c4a54ea7a6a08cf59957f53f5feb5239a7;p=gosa.git Reimplemented remove git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7643 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc index d72cb2b3f..ab5f436a2 100644 --- a/plugins/addons/gotomasses/class_gotomasses.inc +++ b/plugins/addons/gotomasses/class_gotomasses.inc @@ -56,11 +56,20 @@ class gotomasses extends plugin ************/ /* Remove multiple */ - if($s_action == "remove_multiple"){ + if($s_action == "remove_multiple" || $s_action == "remove"){ + if(!$this->acl_is_removeable()){ print_red(_("You are not allowed to remove a task.")); }else{ - $this->ids_to_remove = $this->list_get_selected_items(); + + if($s_action == "remove"){ + $ids = array($s_entry); + }else{ + $ids = $this->list_get_selected_items(); + } + + + $this->ids_to_remove = $ids; $tmp = ""; foreach($this->ids_to_remove as $key => $id){ if($this->o_queue->id_exists($id)){