Code

Updated gotomasses
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Mar 2008 14:30:25 +0000 (14:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Mar 2008 14:30:25 +0000 (14:30 +0000)
-Allow remove of "processed" entries.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10030 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/addons/goto/class_gotomasses.inc

index 286692c3223386b93a15616501ff79badef67e19..a8ffd8665b9aa9979f9e3c5b12c39f65bcabedcc 100644 (file)
@@ -199,7 +199,7 @@ class gotomasses extends plugin
           foreach($ret as $task){
 
             /* Only remove WAITING or ERROR entries */
-            if(in_array($task['STATUS'],array("waiting","error")) || 
+            if(in_array($task['STATUS'],array("waiting","error","processed")) || 
                ($task['STATUS'] == "processing" && !preg_match("/install/",$task['HEADERTAG'])) ){
               $this->ids_to_remove[] = $task['ID'];
               if(isset($this->events['QUEUED'][$task['HEADERTAG']])){
@@ -397,7 +397,7 @@ class gotomasses extends plugin
 
       /* If WAITING or ERROR add remove action
        */  
-      if( $this->acl_is_removeable() && in_array($task['STATUS'],array("waiting","error"))){
+      if( $this->acl_is_removeable() && in_array($task['STATUS'],array("waiting","error","processed"))){
         $action.= "<input type='image' src='images/edittrash.png' name='remove_task_".$key."' 
           class='center' alt='"._("Remove")."'>";
       }