From: hickert Date: Thu, 27 Mar 2008 14:30:25 +0000 (+0000) Subject: Updated gotomasses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2bef585df91ea5c64d2eac7058dafb7baac528de;p=gosa.git Updated gotomasses -Allow remove of "processed" entries. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10030 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/goto/class_gotomasses.inc b/gosa-plugins/goto/addons/goto/class_gotomasses.inc index 286692c32..a8ffd8665 100644 --- a/gosa-plugins/goto/addons/goto/class_gotomasses.inc +++ b/gosa-plugins/goto/addons/goto/class_gotomasses.inc @@ -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.= ""; }