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;
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';
if (empty($content['name'])) {
@ -2939,13 +2947,18 @@ function reporting_simple_baseline_graph($report, $content,
true,
0,
true,
false,
ui_get_full_url(false, false, false, false));
$only_image,
ui_get_full_url(false, false, false, false),
$ttl);
break;
case 'data':
break;
}
if ($config['metaconsole']) {
metaconsole_restore_db();
}
return reporting_check_structure_content($return);
}