From 4818b01e4fe54850b87f3f71664ad72238398e2c Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 25 Sep 2015 15:43:34 +0200 Subject: [PATCH] Add system to view instructions in details events. Tiquet: #2805 --- pandora_console/include/functions_events.php | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 0e8b8445c4..6f9d2c5838 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -2209,6 +2209,31 @@ function events_page_details ($event, $server = "") { } $table_details->data[] = $data; break; + case 'system': + $data = array(); + if ($event["critical_instructions"] != '') { + $data[0] = __('Instructions'); + $data[1] = str_replace("\n","
", io_safe_output($event["critical_instructions"])); + } + else { + if ($event["warning_instructions"] != '') { + $data[0] = __('Instructions'); + $data[1] = str_replace("\n","
", io_safe_output($event["warning_instructions"])); + } + else { + if ($event["unknown_instructions"] != '') { + $data[0] = __('Instructions'); + $data[1] = str_replace("\n","
", io_safe_output($event["unknown_instructions"])); + } + else { + $data[0] = __('Instructions'); + $data[1] = '' . __('N/A') . ''; + + } + } + } + $table_details->data[] = $data; + break; } $data = array();