Merge branch '3056-Error-en-templates-wizard-de-informes-en-meta-dev' into 'develop'
Fixed Automatic combined Graph in metaconsole See merge request artica/pandorafms!2021
This commit is contained in:
commit
ed615a11d0
|
@ -6353,7 +6353,17 @@ function reporting_custom_graph($report, $content, $type = 'dinamic',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
if ($content['id_agent_module']) {
|
||||||
$modules[] = $content['id_agent_module'];
|
$modules[] = $content['id_agent_module'];
|
||||||
|
} else {
|
||||||
|
// restore to metaconsole database
|
||||||
|
metaconsole_restore_db();
|
||||||
|
$module_source = db_get_all_rows_sql("SELECT id_agent_module FROM tgraph_source WHERE id_graph = " . $content['id_gs']);
|
||||||
|
foreach ($module_source as $key => $value) {
|
||||||
|
$modules[$key] = $value['id_agent_module'];
|
||||||
|
}
|
||||||
|
metaconsole_connect($server);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$id_graph = 0;
|
$id_graph = 0;
|
||||||
}
|
}
|
||||||
|
@ -6408,7 +6418,7 @@ function reporting_custom_graph($report, $content, $type = 'dinamic',
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config['metaconsole'] && $type_report != 'automatic_graph') {
|
if ($config['metaconsole']) {
|
||||||
metaconsole_restore_db();
|
metaconsole_restore_db();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue