[Mapbender-commits] r3449 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jan 13 14:48:39 EST 2009
Author: marc
Date: 2009-01-13 14:48:39 -0500 (Tue, 13 Jan 2009)
New Revision: 3449
Modified:
trunk/mapbender/http/classes/class_gui.php
Log:
http://trac.osgeo.org/mapbender/ticket/208
Modified: trunk/mapbender/http/classes/class_gui.php
===================================================================
--- trunk/mapbender/http/classes/class_gui.php 2009-01-13 19:41:37 UTC (rev 3448)
+++ trunk/mapbender/http/classes/class_gui.php 2009-01-13 19:48:39 UTC (rev 3449)
@@ -138,6 +138,10 @@
array_push($v, array($guiList));
array_push($t, array('s'));
+ array_push($sql, "DELETE FROM gui_wfs_conf WHERE fkey_gui_id = $1");
+ array_push($v, array($guiList));
+ array_push($t, array('s'));
+
array_push($sql, "DELETE FROM gui_wms WHERE fkey_gui_id = $1");
array_push($v, array($guiList));
array_push($t, array('s'));
@@ -234,7 +238,12 @@
array_push($sql, "INSERT INTO gui_wfs (fkey_gui_id, fkey_wfs_id) SELECT $1, fkey_wfs_id FROM gui_wfs WHERE fkey_gui_id = $2;");
array_push($v, array($newGuiName, $guiList));
array_push($t, array("s", "s"));
+
+ array_push($sql, "INSERT INTO gui_wfs_conf (fkey_gui_id, fkey_wfs_conf_id) SELECT $1, fkey_wfs_conf_id FROM gui_wfs_conf WHERE fkey_gui_id = $2;");
+ array_push($v, array($newGuiName, $guiList));
+ array_push($t, array("s", "i"));
+
array_push($sql, "INSERT INTO gui_wms (fkey_gui_id, fkey_wms_id, gui_wms_position, gui_wms_mapformat, gui_wms_featureinfoformat, gui_wms_exceptionformat, gui_wms_epsg, gui_wms_visible) SELECT $1, fkey_wms_id, gui_wms_position, gui_wms_mapformat, gui_wms_featureinfoformat, gui_wms_exceptionformat, gui_wms_epsg, gui_wms_visible FROM gui_wms WHERE fkey_gui_id = $2;");
array_push($v, array($newGuiName, $guiList));
array_push($t, array("s", "s"));
More information about the Mapbender_commits
mailing list