From 98f82b4ce85229f41dde4394f6ae54ac7c0cdc29 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 13 Feb 2023 14:32:02 +0100 Subject: [PATCH] #9662 Fixed discovery menu --- pandora_console/godmode/menu.php | 2 ++ pandora_console/include/functions_menu.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index 69814856a4..be8b48a2f3 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -72,6 +72,8 @@ if ((bool) check_acl($config['id_user'], 0, 'AR') === true $sub['godmode/servers/discovery&wiz=hd']['text'] = __('Host & devices'); $sub['godmode/servers/discovery&wiz=hd']['id'] = 'hd'; + $sub['godmode/servers/discovery&wiz=hd']['type'] = 'direct'; + $sub['godmode/servers/discovery&wiz=hd']['subtype'] = 'nolink'; $sub['godmode/servers/discovery&wiz=hd']['sub2'] = $sub2; } diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index 735e450a68..61940ea1b9 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -61,6 +61,10 @@ function menu_print_menu(&$menu) } else if ($sec2 === 'godmode/servers/discovery') { $wiz = (string) get_parameter('wiz'); $sec2 = 'godmode/servers/discovery&wiz='.$wiz; + $mode = (string) get_parameter('mode', ''); + if (empty($mode) === false) { + $sec2 .= '&mode='.$mode; + } } else if ($sec2 === 'godmode/groups/group_list') { $tab = (string) get_parameter('tab'); if ($tab === 'credbox') { @@ -256,7 +260,7 @@ function menu_print_menu(&$menu) if (isset($sub['subtype']) && $sub['subtype'] == 'nolink') { $submenu_output .= ''; } else if (isset($sub['subtype']) && $sub['subtype'] == 'new_blank') { - $submenu_output .= '
'.$sub['text'].'
'; + $submenu_output .= '
'.$sub['text'].'
'; } else { $submenu_output .= '
'.$sub['text'].'
'; }