[Mapbender-commits] r5469 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Feb 1 03:57:20 EST 2010


Author: astrid_emde
Date: 2010-02-01 03:57:18 -0500 (Mon, 01 Feb 2010)
New Revision: 5469

Modified:
   trunk/mapbender/http/classes/class_wfsToDb.php
Log:
update wfs_conf_element defaults are written in table

Modified: trunk/mapbender/http/classes/class_wfsToDb.php
===================================================================
--- trunk/mapbender/http/classes/class_wfsToDb.php	2010-02-01 07:57:50 UTC (rev 5468)
+++ trunk/mapbender/http/classes/class_wfsToDb.php	2010-02-01 08:57:18 UTC (rev 5469)
@@ -18,7 +18,7 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 require_once(dirname(__FILE__)."/../../core/globalSettings.php");
-require_once(dirname(__FILE__)."/class_connector.php");
+require_once(dirname(__FILE__)."/class_connector.php");
 require_once(dirname(__FILE__)."/class_administration.php");
 require_once(dirname(__FILE__)."/class_wfs.php");
 
@@ -319,11 +319,20 @@
 			if ($count === "0") {
 				$e = new mb_notice("Inserting this feature type element (" . 
 					$aWfsFeatureTypeElement->id . ") into WFS conf ($wfsConfId)");
+				
 				// Insert featuretype element in wfs_conf_element
-				$sqlInsertConfElement = "INSERT INTO wfs_conf_element " . 
-					"(fkey_wfs_conf_id, f_id) VALUES ($1, $2)";
-				$v = array($wfsConfId, $aWfsFeatureTypeElement->id);
-				$t = array("i", "i");
+				$sqlInsertConfElement = "INSERT INTO wfs_conf_element ";
+				$sqlInsertConfElement .= "(fkey_wfs_conf_id, f_id,f_search,f_pos, f_style_id,";
+				$sqlInsertConfElement .= "f_toupper, f_label, f_label_id, f_show,";
+				$sqlInsertConfElement .= "f_respos, f_form_element_html, f_edit,";
+				$sqlInsertConfElement .= "f_mandatory, f_auth_varname, f_show_detail, f_operator,";
+				$sqlInsertConfElement .= "f_detailpos, f_min_input) VALUES";
+
+				$sqlInsertConfElement .= "($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18)";
+
+				$v = array($wfsConfId, $aWfsFeatureTypeElement->id,0,0,0,0,'',0,0,0,'',0,0,'',0,'',0,0);
+				$t = array("i", "i","i", "i","i", "i","s","i","i","i","s","i","i","s","i","s","i","i");
+				
 				$resInsertConfElement = db_prep_query($sqlInsertConfElement, $v, $t);
 				if (!$res) {
 					$e = new mb_exception("Couldn't insert new feature type element in wfs_conf_element!");



More information about the Mapbender_commits mailing list