Fixed query of gis map. Tiquet: #3011

This commit is contained in:
m-lopez-f 2015-11-27 09:32:15 +01:00
parent bd3d823490
commit e9ffc06cf8
1 changed files with 2 additions and 2 deletions

View File

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