Fixed snapshot view in metaconsole

This commit is contained in:
fermin831 2018-08-14 13:21:32 +02:00
parent 20a3d6c3be
commit 024a1cc1ee
2 changed files with 2 additions and 5 deletions

View File

@ -1685,7 +1685,8 @@ class Tree {
$module['snapshot'] = ui_get_snapshot_link(array(
'id_module' => $module['id'],
'interval' => $module['current_interval'],
'module_name' => $module['name']
'module_name' => $module['name'],
'id_node' => $module['serverID'] ? $module['serverID'] : 0,
), true);
}

View File

@ -52,10 +52,6 @@ if ($id_node > 0) {
$row_module = modules_get_agentmodule($id);
$row_state = db_get_row('tagente_estado', 'id_agente_modulo', $id);
if ($id_node > 0) {
metaconsole_restore_db();
}
// Build the info
$label = get_parameter ("label", io_safe_output($row_module['module_name']));
$last_timestamp = get_parameter("timestamp", $row_state['timestamp']);