From 75346fb4d8486495939d5079e5b522d39a429394 Mon Sep 17 00:00:00 2001 From: esanchezm Date: Thu, 26 Mar 2009 15:06:53 +0000 Subject: [PATCH] 2009-03-26 Esteban Sanchez * godmode/reporting/reporting_builder.php: Some small fixes which didn't allow creating reports or adding contents. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1569 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/reporting/reporting_builder.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0add912d47..9e0ffb9042 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-03-26 Esteban Sanchez + + * godmode/reporting/reporting_builder.php: Some small fixes which + didn't allow creating reports or adding contents. + 2009-03-26 Esteban Sanchez * godmode/users/configure_user.php: Complete rewritten to fix minor diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index b193e0981d..c3dbf53353 100644 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -105,7 +105,7 @@ if ($add_content) { $module_description = (string) get_parameter ('module_description'); $values = array (); - $values['id_custom_graph'] = $id_custom_graph ? $id_custom_graph : NULL; + $values['id_gs'] = $id_custom_graph ? $id_custom_graph : NULL; $values['id_agent_module'] = $id_agent_module ? $id_agent_module : NULL; $values['type'] = $type; $values['period'] = $period * 3600; @@ -136,7 +136,7 @@ if ($create_report) { $values = array (); $values['description'] = $report_description; $values['private'] = $report_private; - $id_report = create_report ($name, $id_group, $values); + $id_report = create_report ($report_name, $report_id_group, $values); print_result_message ($id_report, __('Successfully created'), __('Could not be created'));