From fa6eabf104777fee3ef953e4364a04547cf312d1 Mon Sep 17 00:00:00 2001 From: alexhigh Date: Mon, 24 Mar 2014 17:42:31 +0000 Subject: [PATCH] 2014-03-24 Alejandro Gallardo * operation/agentes/estado_monitores.php: Fixed an error on the monitor relationship tooltip. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9640 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../operation/agentes/estado_monitores.php | 14 ++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5dc63e8f4c..a38265589f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-03-24 Alejandro Gallardo + + * operation/agentes/estado_monitores.php: Fixed an error + on the monitor relationship tooltip. + 2014-03-24 Miguel de Dios * godmode/massive/massive_edit_agents.php, diff --git a/pandora_console/operation/agentes/estado_monitores.php b/pandora_console/operation/agentes/estado_monitores.php index 214bc0185f..e68c83795c 100644 --- a/pandora_console/operation/agentes/estado_monitores.php +++ b/pandora_console/operation/agentes/estado_monitores.php @@ -67,13 +67,20 @@ if (is_ajax ()) { $table_relations->data = array(); foreach ($relations as $relation) { + if ($relation['module_a'] == $id_agente_modulo) { + $id_module = $relation['module_b']; + } else { + $id_module = $relation['module_a']; + } + $id_agent = modules_get_agentmodule_agent($id_module); + $data = array(); $data[0] = __('Agent'); - $data[1] = ui_print_agent_name ($id_agente, true); + $data[1] = ui_print_agent_name ($id_agent, true); $data[2] = __('Module'); $data[3] = "" . - ui_print_truncate_text(modules_get_agentmodule_name($id_agente_modulo), 'module_medium', true, true, true, '[…]') . ""; + &id_agente=$id_agent&tab=module&edit_module=1&id_agent_module=$id_module'>" . + ui_print_truncate_text(modules_get_agentmodule_name($id_module), 'module_medium', true, true, true, '[…]') . ""; $table_relations->data[] = $data; } html_print_table($table_relations); @@ -474,7 +481,6 @@ foreach ($modules as $module) { } //Adds relations context information - if (modules_relation_exists($module['id_agente_modulo'])) { $data[3] .= ' ' . html_print_image("images/link2.png", true, array("id" => 'relations-details-'.$module['id_agente_modulo'], "class" => "img_help")) . ' ';