Fixed csv reports download
This commit is contained in:
parent
d9b697d076
commit
43eb928aa8
|
@ -4181,6 +4181,7 @@ function reporting_sql_graph(
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'dinamic':
|
case 'dinamic':
|
||||||
case 'static':
|
case 'static':
|
||||||
|
case 'data':
|
||||||
$return['chart'] = graph_custom_sql_graph(
|
$return['chart'] = graph_custom_sql_graph(
|
||||||
$content['id_rc'],
|
$content['id_rc'],
|
||||||
$width,
|
$width,
|
||||||
|
@ -4192,9 +4193,6 @@ function reporting_sql_graph(
|
||||||
$content['top_n_value']
|
$content['top_n_value']
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'data':
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return reporting_check_structure_content($return);
|
return reporting_check_structure_content($return);
|
||||||
|
@ -4394,6 +4392,7 @@ function reporting_netflow(
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'dinamic':
|
case 'dinamic':
|
||||||
case 'static':
|
case 'static':
|
||||||
|
case 'data':
|
||||||
$return['chart'] = netflow_draw_item(
|
$return['chart'] = netflow_draw_item(
|
||||||
($report['datetime'] - $content['period']),
|
($report['datetime'] - $content['period']),
|
||||||
$report['datetime'],
|
$report['datetime'],
|
||||||
|
@ -7542,8 +7541,26 @@ function reporting_custom_graph(
|
||||||
$content['name'] = __('Simple graph');
|
$content['name'] = __('Simple graph');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$id_agent = agents_get_module_id(
|
||||||
|
$content['id_agent_module']
|
||||||
|
);
|
||||||
|
$id_agent_module = $content['id_agent_module'];
|
||||||
|
$agent_description = agents_get_description($id_agent);
|
||||||
|
$agent_group = agents_get_agent_group($id_agent);
|
||||||
|
$agent_address = agents_get_address($id_agent);
|
||||||
|
$agent_alias = agents_get_alias($id_agent);
|
||||||
|
$module_name = modules_get_agentmodule_name(
|
||||||
|
$id_agent_module
|
||||||
|
);
|
||||||
|
|
||||||
|
$module_description = modules_get_agentmodule_descripcion(
|
||||||
|
$id_agent_module
|
||||||
|
);
|
||||||
|
|
||||||
$return['title'] = $content['name'];
|
$return['title'] = $content['name'];
|
||||||
$return['subtitle'] = io_safe_output($graph['name']);
|
$return['subtitle'] = io_safe_output($graph['name']);
|
||||||
|
$return['agent_name'] = $agent_alias;
|
||||||
|
$return['module_name'] = $module_name;
|
||||||
$return['description'] = $content['description'];
|
$return['description'] = $content['description'];
|
||||||
$return['date'] = reporting_get_date_text(
|
$return['date'] = reporting_get_date_text(
|
||||||
$report,
|
$report,
|
||||||
|
@ -7557,6 +7574,7 @@ function reporting_custom_graph(
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'dinamic':
|
case 'dinamic':
|
||||||
case 'static':
|
case 'static':
|
||||||
|
case 'data':
|
||||||
$params = [
|
$params = [
|
||||||
'period' => $content['period'],
|
'period' => $content['period'],
|
||||||
'width' => $width,
|
'width' => $width,
|
||||||
|
|
Loading…
Reference in New Issue