From 5c59a754928f21fea14827b7a18c98023474b447 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 27 Nov 2015 09:32:15 +0100 Subject: [PATCH] Fixed query of gis map. Tiquet: #3011 (cherry picked from commit e9ffc06cf8d4bd4bf320d1e722c8da66f08657f2) --- pandora_console/include/functions_gis.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_gis.php b/pandora_console/include/functions_gis.php index 3b5f9b6907..cd4e642dd3 100644 --- a/pandora_console/include/functions_gis.php +++ b/pandora_console/include/functions_gis.php @@ -1193,7 +1193,7 @@ function gis_get_map_data($idMap) { $connections = false; switch ($config["dbtype"]) { case "mysql": - $sql = "SELECT t1.tgis_map_con_id_tmap_con AS id_conection + $sql = "SELECT t1.tgis_map_con_id_tmap_con AS id_conection, t1.default_map_connection AS `default`, SUM(t2.num_zoom_levels) AS num_zoom_levels FROM tgis_map_has_tgis_map_con t1 @@ -1205,7 +1205,7 @@ function gis_get_map_data($idMap) { break; case "postgresql": case "oracle": - $sql = "SELECT t1.tgis_map_con_id_tmap_con AS id_conection + $sql = "SELECT t1.tgis_map_con_id_tmap_con AS id_conection, t1.default_map_connection AS \"default\", SUM(t2.num_zoom_levels) AS num_zoom_levels FROM tgis_map_has_tgis_map_con t1