From 03fea8212469eb91d40a4957e844350c68db911b Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Thu, 30 Nov 2023 08:45:34 +0100 Subject: [PATCH] #12524 fixed opening items in new tabs Monitoring and Alerts view --- .../operation/agentes/status_monitor.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 825fbb01df..70101d8a1e 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -1708,7 +1708,7 @@ if (empty($result) === false) { // TODO: Calculate hash access before to use it more simply like other sections. I.E. Events view if (is_metaconsole() === true) { - echo "
"; + echo ""; html_print_input_hidden( 'loginhash', 'auto', @@ -1725,7 +1725,7 @@ if (empty($result) === false) { false ); echo '
'; - $agent_link = ""; + $agent_link = ""; $agent_alias = ui_print_truncate_text( $agent_alias, @@ -2257,7 +2257,7 @@ if (empty($result) === false) { $table->cellclass[][2] = 'action_buttons'; if (is_metaconsole() === true) { - echo "
"; + echo ""; html_print_input_hidden( 'id_agente', $row['id_agent'], @@ -2285,7 +2285,15 @@ if (empty($result) === false) { ); echo '
'; - $agent_link = "
"; + + $url_edit_module = $row['server_url']; + $url_edit_module .= 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&'; + $url_edit_module .= '&id_agente='.$row['id_agent']; + $url_edit_module .= '&tab=module&id_agent_module='.$row['id_agente_modulo'].'&edit_module=1'; + $url_edit_module .= '&loginhash=auto&loginhash_data='.$row['hashdata']; + $url_edit_module .= '&loginhash_user='.str_rot13($row['user']); + + $agent_link = ""; $agent_alias = ui_print_truncate_text( $agent_alias,