From cb392f83bd693d4a8cff6299cecb049bdda4a0f2 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Fri, 14 May 2010 10:34:37 +0000 Subject: [PATCH] 2010-05-14 Sergio Martin * godmode/reporting/visual_console_builder.php: Fixed the adding at visual map only the agent if module is no selected and only the module if is selected. Bug: 2989339 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2729 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ .../godmode/reporting/visual_console_builder.php | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9c3735aba6..57347c8ffc 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2010-05-14 Sergio Martin + + * godmode/reporting/visual_console_builder.php: Fixed + the adding at visual map only the agent if module is + no selected and only the module if is selected. + Bug: 2989339 + 2010-05-14 Miguel de Dios * godmode/gis_maps/configure_gis_map.php: fixed the title of button to diff --git a/pandora_console/godmode/reporting/visual_console_builder.php b/pandora_console/godmode/reporting/visual_console_builder.php index d26d0ebbcd..edf649b38c 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.php +++ b/pandora_console/godmode/reporting/visual_console_builder.php @@ -142,10 +142,10 @@ switch ($activeTab) { $width = (int) get_parameter ("width", 0); $height = (int) get_parameter ("height", 0); $message = ''; - $message = process_wizard_add ($id_agents, $image, $idVisualConsole, $range, $width, $height); - if (!empty ($id_modules)) { + if ($id_modules[0] == 0) + $message .= process_wizard_add ($id_agents, $image, $idVisualConsole, $range, $width, $height); + else $message .= process_wizard_add_modules ($id_modules, $image, $idVisualConsole, $range, $width, $height); - } $statusProcessInDB = array('flag' => true, 'message' => $message); $action = 'edit'; break;