From a5ce8e4d084f173552692e921648a37daf9a79e8 Mon Sep 17 00:00:00 2001 From: vgilc Date: Thu, 9 Feb 2012 17:00:34 +0000 Subject: [PATCH] 2012-02-09 Vanessa Gil * operation/events/events_list.php: show 'source' and 'extra id' fields in event view when the value is empty. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5535 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ .../operation/events/events_list.php | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 62b51eb5cf..a6ec0c9977 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-02-09 Vanessa Gil + * operation/events/events_list.php: show 'source' and 'extra id' fields + in event view when the value is empty. + 2012-02-09 Juan Manuel Ramon * godmode/snmpconsole/snmp_alert.php: Added 'None' value to trap diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 2ca9658e1e..c5b435d38d 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -1037,6 +1037,23 @@ foreach ($result as $event) { $string .= ''; $odd = ($odd == '')? 'rowOdd' : ''; } + $string .= '' . '' . __('Source') . ''; + if ($event["source"] != '') { + $string .= $event["source"]; + $string .= ''; + $odd = ($odd == '')? 'rowOdd' : ''; + } else { + $string .= '- ' . __('Empty') . ' -'; + $odd = ($odd == '')? 'rowOdd' : ''; + } + $string .= '' . '' . __('Extra id') . ''; + if ($event["id_extra"] != '') { + $string .= $event["id_extra"]; + $string .= ''; + $odd = ($odd == '')? 'rowOdd' : ''; + } else { + $string .= '- ' . __('Empty') . ' -'; + } $string .= ''; $string .= '';