Fixed module type chart selected in conf. Ticket #345
This commit is contained in:
parent
63d582586b
commit
cb7ab827d2
|
@ -107,7 +107,7 @@ if ($print_sparse_graph) {
|
|||
$pure, $date, $unit, $baseline, $return_data, $show_title,
|
||||
$only_image, $homeurl, $ttl, $projection, $adapt_key, $compare,
|
||||
$show_unknown, $menu, $backgroundColor, $percentil,
|
||||
$dashboard, $vconsole);
|
||||
$dashboard, $vconsole, $config['type_module_charts']);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -161,7 +161,8 @@ switch ($action) {
|
|||
$img = grafico_modulo_sparse($id_agent_module,
|
||||
$period, 0, $width, $height, '', null, false, 1,
|
||||
0, 0, '', 0, 0, true, true, '', 1, false, '',
|
||||
false, false, true, $background_color);
|
||||
false, false, true, $background_color,
|
||||
false, false, false, $config['type_module_charts']);
|
||||
}
|
||||
|
||||
//Restore db connection
|
||||
|
|
|
@ -9287,8 +9287,9 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) {
|
|||
$graph_html = grafico_modulo_sparse(
|
||||
$id_module, $graph_seconds, false, 600, 300, '',
|
||||
'', false, false, true, time(), '', 0, 0, true, true,
|
||||
ui_get_full_url(false) . '/', 1, false, '', false, true);
|
||||
|
||||
ui_get_full_url(false) . '/', 1, false, '', false, true,
|
||||
true, 'white', null, false, false, $config['type_module_charts']);
|
||||
|
||||
$graph_image_file_encoded = false;
|
||||
if (preg_match("/<img src='(.+)'./", $graph_html, $matches)) {
|
||||
$file_url = $matches[1];
|
||||
|
|
|
@ -790,12 +790,11 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
|
|||
$only_image = false, $homeurl = '', $ttl = 1, $projection = false,
|
||||
$adapt_key = '', $compare = false, $show_unknown = false,
|
||||
$menu = true, $backgroundColor = 'white', $percentil = null,
|
||||
$dashboard = false, $vconsole = false,$type_graph = 'area') {
|
||||
$dashboard = false, $vconsole = false, $type_graph = 'area') {
|
||||
|
||||
global $config;
|
||||
global $graphic_type;
|
||||
|
||||
|
||||
|
||||
$flash_chart = $config['flash_charts'];
|
||||
|
||||
enterprise_include_once("include/functions_reporting.php");
|
||||
|
@ -4059,6 +4058,7 @@ function grafico_modulo_boolean ($agent_module_id, $period, $show_events,
|
|||
'url' => ui_get_full_url("/images/logo_vertical_water.png",
|
||||
false, false, false));
|
||||
$type_graph = $config['type_module_charts'];
|
||||
|
||||
if ($type_graph === 'area') {
|
||||
if ($compare === 'separated') {
|
||||
return area_graph($flash_chart, $chart, $width, $height/2, $color, $legend,
|
||||
|
|
|
@ -5960,7 +5960,10 @@ function reporting_simple_graph($report, $content, $type = 'dinamic',
|
|||
true,
|
||||
true,
|
||||
'white',
|
||||
($content['style']['percentil'] == 1) ? $config['percentil'] : null);
|
||||
($content['style']['percentil'] == 1) ? $config['percentil'] : null,
|
||||
false,
|
||||
false,
|
||||
$config['type_module_charts']);
|
||||
}
|
||||
break;
|
||||
case 'data':
|
||||
|
|
|
@ -187,7 +187,8 @@ class ModuleGraph {
|
|||
1,
|
||||
false,
|
||||
'adapter_' . $this->graph_type,
|
||||
$time_compare, $this->unknown_graph, false);
|
||||
$time_compare, $this->unknown_graph, false,
|
||||
'white', null, false, false, $config['type_module_charts']);
|
||||
if ($this->draw_events) {
|
||||
$graph .= '<br>';
|
||||
$graph .= graphic_module_events($this->id,
|
||||
|
|
|
@ -222,7 +222,8 @@ $id = get_parameter('id');
|
|||
false, $urlImage, 1, false,
|
||||
'adapter_' . $graph_type, $time_compare,
|
||||
$unknown_graph, true, 'white',
|
||||
(($show_percentil)? $config['percentil'] : null));
|
||||
(($show_percentil)? $config['percentil'] : null),
|
||||
false, false, $config['type_module_charts']);
|
||||
echo '<br>';
|
||||
if ($show_events_graph)
|
||||
echo graphic_module_events($id, $width, $height,
|
||||
|
|
Loading…
Reference in New Issue