From 4d69b10a8fd20a47f32b17aea35d263d6b6b55a4 Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Mon, 4 Sep 2023 13:01:34 +0200 Subject: [PATCH 1/3] #11988 Fix get_parameter --- pandora_console/operation/snmpconsole/snmp_browser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/operation/snmpconsole/snmp_browser.php b/pandora_console/operation/snmpconsole/snmp_browser.php index 04a44d2fa1..b45a6be7bc 100644 --- a/pandora_console/operation/snmpconsole/snmp_browser.php +++ b/pandora_console/operation/snmpconsole/snmp_browser.php @@ -73,8 +73,9 @@ if ($config['pure']) { } // Control from managent polices. -$type = get_parameter('type', false); +$type = get_parameter('moduletype', false); $page = get_parameter('page', false); + if (empty($page) && $type !== 'networkserver') { // Header. ui_print_standard_header( From c7618be8d0fd9e7ec298d3c7b5e05e80c807c1a9 Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Thu, 7 Sep 2023 12:27:28 +0200 Subject: [PATCH 2/3] #11988 Fix snmp browser title --- pandora_console/operation/snmpconsole/snmp_browser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/operation/snmpconsole/snmp_browser.php b/pandora_console/operation/snmpconsole/snmp_browser.php index b45a6be7bc..ea26dc88fc 100644 --- a/pandora_console/operation/snmpconsole/snmp_browser.php +++ b/pandora_console/operation/snmpconsole/snmp_browser.php @@ -76,8 +76,9 @@ if ($config['pure']) { $type = get_parameter('moduletype', false); $page = get_parameter('page', false); -if (empty($page) && $type !== 'networkserver') { +if (empty($page) && $type !== 'networkserver' && $moduletype !== 2) { // Header. + // hd($moduletype, true); ui_print_standard_header( __('SNMP Browser'), 'images/op_snmp.png', From 2104823b6845577cd4ae609594ef1b8c0e7a29cc Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Thu, 7 Sep 2023 12:50:25 +0200 Subject: [PATCH 3/3] #11988 Clean traces --- pandora_console/operation/snmpconsole/snmp_browser.php | 1 - 1 file changed, 1 deletion(-) diff --git a/pandora_console/operation/snmpconsole/snmp_browser.php b/pandora_console/operation/snmpconsole/snmp_browser.php index ea26dc88fc..0fa30148ed 100644 --- a/pandora_console/operation/snmpconsole/snmp_browser.php +++ b/pandora_console/operation/snmpconsole/snmp_browser.php @@ -78,7 +78,6 @@ $page = get_parameter('page', false); if (empty($page) && $type !== 'networkserver' && $moduletype !== 2) { // Header. - // hd($moduletype, true); ui_print_standard_header( __('SNMP Browser'), 'images/op_snmp.png',