2011-03-30 Javier Lanz <javier.lanz@artica.es>

* include/functions_reporting.php: Fixed a small problem when displaying
	only the graph and not the table for the exception report.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4147 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
javilanz 2011-03-30 15:02:56 +00:00
parent e4305f487a
commit 56b8e94993
2 changed files with 18 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2011-03-30 Javier Lanz <javier.lanz@artica.es>
* include/functions_reporting.php: Fixed a small problem when displaying
only the graph and not the table for the exception report.
2011-03-30 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_graph.php, include/graphs/*, include/graphs/fgraph.php:

View File

@ -3189,11 +3189,13 @@ function render_report_html_item ($content, $table, $report, $mini = false) {
$data_pie_graph = array();
foreach ($data_exceptions as $dex) {
$data_pie_graph[$agent_name[$j]] = $dex;
$data = array();
$data[0] = printTruncateText($agent_name[$j], 30);
$data[1] = printTruncateText($module_name[$j], 30);
$data[2] = $dex;
array_push ($table1->data, $data);
if ($show_graph == 0 || $show_graph == 1) {
$data = array();
$data[0] = printTruncateText($agent_name[$j], 30);
$data[1] = printTruncateText($module_name[$j], 30);
$data[2] = $dex;
array_push ($table1->data, $data);
}
$j++;
}
}
@ -3202,11 +3204,13 @@ function render_report_html_item ($content, $table, $report, $mini = false) {
$data_pie_graph = array();
foreach ($agent_name as $an) {
$data_pie_graph[$an] = $data_exceptions[$j];
$data = array();
$data[0] = printTruncateText($an, 30);
$data[1] = printTruncateText($module_name[$j], 30);
$data[2] = $data_exceptions[$j];
array_push ($table1->data, $data);
if ($show_graph == 0 || $show_graph == 1) {
$data = array();
$data[0] = printTruncateText($an, 30);
$data[1] = printTruncateText($module_name[$j], 30);
$data[2] = $data_exceptions[$j];
array_push ($table1->data, $data);
}
$j++;
}
}