Refactorized snapshot link on meta

This commit is contained in:
fermin831 2018-08-02 13:42:39 +02:00
parent 7b22caaea8
commit c1269ca23f
3 changed files with 5 additions and 3 deletions

View File

@ -273,7 +273,8 @@ function treeview_printModuleTable($id_module, $server_data = false, $no_head =
$link = ui_get_snapshot_link( array(
'id_module' => $module['id_agente_modulo'],
'interval' => $module['current_interval'],
'module_name' => $module['module_name']
'module_name' => $module['module_name'],
'id_node' => empty($server_id) ? 0 : $server_id
));
$salida = ui_get_snapshot_image($link, $is_snapshot) . '  ';
}

View File

@ -43,7 +43,7 @@ $id_node = get_parameter("id_node", 0);
// Get the data
if ($id_node > 0) {
$connection = metaconsole_get_connection_by_id($server_name);
$connection = metaconsole_get_connection_by_id($id_node);
if (metaconsole_load_external_db($connection) != NOERR) {
echo "Node connection fail";
exit;

View File

@ -1305,7 +1305,8 @@ if (!empty($result)) {
$link = ui_get_snapshot_link( array(
'id_module' => $row['id_agente_modulo'],
'interval' => $row['current_interval'],
'module_name' => $row['module_name']
'module_name' => $row['module_name'],
'id_node' => $row['server_id']
));
$salida = ui_get_snapshot_image($link, $is_snapshot) . '  ';
} else {