From a615d2d98f490ae1ba6c7686173b6266d9d8a5f8 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 20 Feb 2023 17:08:36 +0100 Subject: [PATCH] #9662 minor fixed --- pandora_console/general/main_menu.php | 2 +- pandora_console/include/functions_menu.php | 5 +++++ pandora_console/operation/menu.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/general/main_menu.php b/pandora_console/general/main_menu.php index efa2fc5c96..72fa391aa7 100644 --- a/pandora_console/general/main_menu.php +++ b/pandora_console/general/main_menu.php @@ -444,7 +444,7 @@ echo ''; */ function menu_calculate_top(index, item_height) { const result = index * item_height; - return 136 + result; + return 133 + result; } }); diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index af3071809d..d0baa614c8 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -104,6 +104,11 @@ function menu_print_menu(&$menu) if (empty($id) === false) { $sec2 = 'operation/visual_console/render_view&id='.$id; } + } else if ($sec2 === 'operation/messages/message_edit') { + $new_msg = (int) get_parameter('new_msg', 0); + if (empty($new_msg) === false) { + $sec2 = 'operation/messages/message_edit&new_msg='.$new_msg; + } } else { $sec2 = (string) get_parameter('sec2'); } diff --git a/pandora_console/operation/menu.php b/pandora_console/operation/menu.php index b89ca1d8f5..cb9ce7321a 100644 --- a/pandora_console/operation/menu.php +++ b/pandora_console/operation/menu.php @@ -656,7 +656,7 @@ if ($access_console_node === true) { $sub['message_list']['subtype'] = 'nolink'; $sub2 = []; $sub2['operation/messages/message_list']['text'] = __('Messages List'); - $sub2['operation/messages/message_edit&new_msg=1']['text'] = __('New message'); + $sub2['operation/messages/message_edit&new_msg=1']['text'] = __('New message'); $sub['message_list']['sub2'] = $sub2; }