From da1623acf1cb42a96095eb1e46a09dbe89a5da82 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 (cherry picked from commit 4818b01e4fe54850b87f3f71664ad72238398e2c) --- 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 e5e5a049eb..a2ea6a2e3e 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -2066,6 +2066,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();