mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed query of gis map. Tiquet: #3011
(cherry picked from commit e9ffc06cf8d4bd4bf320d1e722c8da66f08657f2)
This commit is contained in:
parent
ce146675c6
commit
5c59a75492
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user