2013-03-07 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_reporting.php: fixed the apply format to
	numeric value in the max item report.
	
	MERGE FROM THE BRANCH PANDORA_4




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7808 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-03-07 16:29:19 +00:00
parent 5978f9babf
commit 69bd54c82c
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2013-03-07 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: fixed the apply format to
numeric value in the max item report.
MERGE FROM THE BRANCH PANDORA_4
2013-03-07 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/reporting_builder.php,

View File

@ -3531,7 +3531,9 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
$data = array ();
$table->colspan[2][0] = 3;
$value = format_numeric (reporting_get_agentmodule_data_max ($content['id_agent_module'], $content['period'], $report["datetime"]));
$value = reporting_get_agentmodule_data_max ($content['id_agent_module'], $content['period'], $report["datetime"]);
$unit = db_get_value('unit', 'tagente_modulo', 'id_agente_modulo', $content ['id_agent_module']);
$data[0] = '<p style="font: bold '.$sizem.'em Arial, Sans-serif; color: #000000;">' .
format_for_graph($value, 2) . " " . $unit .'</p>';