From fa4461c4a54ea7a6a08cf59957f53f5feb5239a7 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 24 Oct 2007 13:52:51 +0000 Subject: [PATCH] Reimplemented remove git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7643 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/gotomasses/class_gotomasses.inc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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)){ -- 2.30.2