From 150fe2a7fbd89c061d233fd70ae9d205c76231f4 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 25 Mar 2008 14:23:15 +0000 Subject: [PATCH] Updated gotomasses -Allow update job remove git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9976 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/addons/goto/class_gotomasses.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/addons/goto/class_gotomasses.inc b/gosa-plugins/goto/addons/goto/class_gotomasses.inc index bedeaced1..286692c32 100644 --- a/gosa-plugins/goto/addons/goto/class_gotomasses.inc +++ b/gosa-plugins/goto/addons/goto/class_gotomasses.inc @@ -199,7 +199,8 @@ 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")) || + ($task['STATUS'] == "processing" && !preg_match("/install/",$task['HEADERTAG'])) ){ $this->ids_to_remove[] = $task['ID']; if(isset($this->events['QUEUED'][$task['HEADERTAG']])){ $evt_name = $this->events['QUEUED'][$task['HEADERTAG']]; @@ -375,7 +376,7 @@ class gotomasses extends plugin /* If PROCESSING add abort action */ - if(in_array($task['STATUS'],array("processing")) && preg_match("/*install*/",$task['HEADERTAG'])){ + if(in_array($task['STATUS'],array("processing")) && preg_match("/install/",$task['HEADERTAG'])){ $prio_actions.= ""; } @@ -400,6 +401,10 @@ class gotomasses extends plugin $action.= ""; } + if(in_array($task['STATUS'],array("processing")) && !preg_match("/install/",$task['HEADERTAG'])){ + $action.= ""; + } $color = ""; $display = $task['MACADDRESS']; -- 2.30.2