From 9bd5bb107fb2899e90e2747e56e4d9fba27b516f Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Fri, 30 Apr 2010 10:43:46 +0000 Subject: [PATCH] 2010-04-30 Sergio Martin * operation/snmpconsole/snmp_view.php: Fixed the custom value column tooltip. Now, the tooltip shows the full value instead of the custom OID. Bug: 2940432 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2644 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/operation/snmpconsole/snmp_view.php | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ab8c1ace01..d9e551c5e9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-04-30 Sergio Martin + + * operation/snmpconsole/snmp_view.php: Fixed the custom + value column tooltip. Now, the tooltip shows the full + value instead of the custom OID. Bug: 2940432 + 2010-04-30 Miguel de Dios * include/functions_io.php: added in the function "safe_output" the flag diff --git a/pandora_console/operation/snmpconsole/snmp_view.php b/pandora_console/operation/snmpconsole/snmp_view.php index 98e2005cbe..c65326b352 100644 --- a/pandora_console/operation/snmpconsole/snmp_view.php +++ b/pandora_console/operation/snmpconsole/snmp_view.php @@ -366,8 +366,9 @@ if ($traps !== false) { } //Custom - $data[4] = '' . $trap["value_custom"] . ''; - + //$data[4] = '' . $trap["value_custom"] . ''; + $data[4] = substr ($trap["value_custom"], 0, 15); + if (empty ($data[4])) { $data[4] = __('N/A'); } elseif (strlen ($trap["value_custom"]) > 15) {