Code

Bugfix for #4271
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Apr 2010 10:33:42 +0000 (10:33 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Apr 2010 10:33:42 +0000 (10:33 +0000)
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

index b7200f3444bbcdaeace8b9fd37a07668d881f877..a56993518b15a28222de19c12b70824d62872944 100644 (file)
@@ -256,6 +256,11 @@ class gotomasses extends plugin
               $j_name = $task['ID']." - ".$task['HEADERTAG']."&nbsp;".$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'])) ){