Fixed the 'simple_baseline_graph' item in metaconsole reports. TICKET: #2249

This commit is contained in:
mdtrooper 2015-05-22 17:25:56 +02:00
parent c004c2c1b6
commit 3ee4194d11
1 changed files with 15 additions and 2 deletions

View File

@ -2898,6 +2898,14 @@ function reporting_simple_baseline_graph($report, $content,
global $config; global $config;
if ($config['metaconsole']) {
$id_meta = metaconsole_get_id_server($content["server_name"]);
$server = metaconsole_get_connection_by_id ($id_meta);
metaconsole_connect($server);
}
$return['type'] = 'simple_baseline_graph'; $return['type'] = 'simple_baseline_graph';
if (empty($content['name'])) { if (empty($content['name'])) {
@ -2939,13 +2947,18 @@ function reporting_simple_baseline_graph($report, $content,
true, true,
0, 0,
true, true,
false, $only_image,
ui_get_full_url(false, false, false, false)); ui_get_full_url(false, false, false, false),
$ttl);
break; break;
case 'data': case 'data':
break; break;
} }
if ($config['metaconsole']) {
metaconsole_restore_db();
}
return reporting_check_structure_content($return); return reporting_check_structure_content($return);
} }