diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c65baa5081..f0d55b0d05 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-05-11 Sergio Martin + + * godmode/gis_maps/index.php: Fixed the change + of default map for bug: 2993745 + 2010-05-11 Junichi Satoh * include/help/ja/help_cascade_protection.php: Fixed a typo. diff --git a/pandora_console/godmode/gis_maps/index.php b/pandora_console/godmode/gis_maps/index.php index 43a5ddad89..6fec7b0276 100644 --- a/pandora_console/godmode/gis_maps/index.php +++ b/pandora_console/godmode/gis_maps/index.php @@ -31,6 +31,10 @@ if (is_ajax ()) { $action = get_parameter('action'); $id_map = get_parameter('id_map'); + // Set to not default the actual default map + $returnOperationDB = process_sql_update('tgis_map', array('default_map' => 0), array('default_map' => 1)); + + // Set default the new default map $returnOperationDB = process_sql_update('tgis_map', array('default_map' => 1), array('id_tgis_map' => $id_map)); if ($returnOperationDB === false)