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;