2010-05-11 Sergio Martin <sergio.martin@artica.es>

* godmode/gis_maps/index.php: Fixed the change
	of default map for bug: 2993745



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2692 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-05-11 14:23:30 +00:00
parent f6eed84e80
commit 95a0d90bad
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-05-11 Sergio Martin <sergio.martin@artica.es>
* godmode/gis_maps/index.php: Fixed the change
of default map for bug: 2993745
2010-05-11 Junichi Satoh <junichi@rworks.jp>
* include/help/ja/help_cascade_protection.php: Fixed a typo.

View File

@ -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)