summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d46871c)
raw | patch | inline | side by side (parent: d46871c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 24 Oct 2007 13:52:51 +0000 (13:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 24 Oct 2007 13:52:51 +0000 (13:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7643 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/addons/gotomasses/class_gotomasses.inc | patch | blob | history |
diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc
index d72cb2b3f9356bbad3613719e430221a7b94fca9..ab5f436a2ab54092880adf89e2ddfd3663676cf6 100644 (file)
************/
/* 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)){