From 3e4f065e1797602dceeb8ee6805bfa7d37899938 Mon Sep 17 00:00:00 2001 From: psc Date: Fri, 30 Apr 2010 10:33:42 +0000 Subject: [PATCH] Bugfix for #4271 When deleting events from the deployment status show the system name in parentheses (if available) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17990 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-plugins/goto/addons/goto/class_gotomasses.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trunk/gosa-plugins/goto/addons/goto/class_gotomasses.inc b/trunk/gosa-plugins/goto/addons/goto/class_gotomasses.inc index b7200f344..a56993518 100644 --- a/trunk/gosa-plugins/goto/addons/goto/class_gotomasses.inc +++ b/trunk/gosa-plugins/goto/addons/goto/class_gotomasses.inc @@ -256,6 +256,11 @@ class gotomasses extends plugin $j_name = $task['ID']." - ".$task['HEADERTAG']." ".$task['MACADDRESS']; } + /* If system name is available show it in parantheses next to each entry */ + if(isset($task['PLAINNAME']) && $task['PLAINNAME'] != 'none') { + $j_name .= sprintf(" (%s) ", $task['PLAINNAME']); + } + /* Only remove WAITING or ERROR entries */ if(in_array($task['STATUS'],array("waiting","error","processed")) || ($task['STATUS'] == "processing" && !preg_match("/install/",$task['HEADERTAG'])) ){ -- 2.30.2