From 062e03ff1ca69c4562f64728f82bea362f0f975b Mon Sep 17 00:00:00 2001 From: Esteban Sanchez Date: Fri, 23 Jan 2009 11:48:28 +0000 Subject: [PATCH] 2009-01-23 Esteban Sanchez * godmode/reporting/map_builder.php: Fixed an error when getting layout data on AJAX and any module was selected for the node. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1394 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 +++++- pandora_console/godmode/reporting/map_builder.php | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 6b9a4ef6a1..eaed4f9cb3 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-01-23 Esteban Sanchez + + * godmode/reporting/map_builder.php: Fixed an error when getting + layout data on AJAX and any module was selected for the node. + 2009-01-22 Sancho Lerena * images/*: Added more icons and backgrouns for visual console. @@ -688,7 +693,6 @@ * fgraph.php: Some graphs are now fixed and uses tagente_datos and tagent_access with utimestamp and without id_agent index. Works faster - 2009-01-09 Evi Vanoost * general/footer.php, operation/agentes/sla_view.php, diff --git a/pandora_console/godmode/reporting/map_builder.php b/pandora_console/godmode/reporting/map_builder.php index 3bd1a796fa..e4a8808757 100644 --- a/pandora_console/godmode/reporting/map_builder.php +++ b/pandora_console/godmode/reporting/map_builder.php @@ -129,7 +129,9 @@ if ($get_background_info) { if ($get_layout_data) { $id_layout_data = (int) get_parameter ('id_layout_data'); $layout_data = get_db_row ('tlayout_data', 'id', $id_layout_data); - $layout_data['id_agent'] = give_agent_id_from_module_id ($layout_data['id_agente_modulo']); + if ($layout_data['id_agente_modulo']) + $layout_data['id_agent'] = give_agent_id_from_module_id ($layout_data['id_agente_modulo']); + if (defined ('AJAX')) { echo json_encode ($layout_data); exit;