[Mapbender-commits] r4049 - in trunk/mapbender: http/classes sql
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jun 19 09:26:49 EDT 2009
Author: christoph
Date: 2009-06-19 09:26:49 -0400 (Fri, 19 Jun 2009)
New Revision: 4049
Modified:
trunk/mapbender/http/classes/class_wfs_configuration.php
trunk/mapbender/sql/update_wfs_conf_element.sql
Log:
Modified: trunk/mapbender/http/classes/class_wfs_configuration.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs_configuration.php 2009-06-19 12:12:43 UTC (rev 4048)
+++ trunk/mapbender/http/classes/class_wfs_configuration.php 2009-06-19 13:26:49 UTC (rev 4049)
@@ -116,18 +116,18 @@
* @return Boolean true if succeeded; else false
* @param $el WfsConfigurationElement
*/
- public static function updateInDb ($el) {
+ public static function updateInDb ($wfsConfId, $el) {
$sql = file_get_contents("../../sql/update_wfs_conf_element.sql");
$v = array(
$el->geom, $el->search, $el->pos, $el->styleId, $el->toUpper,
$el->label, $el->labelId, $el->show, $el->respos,
$el->formElementHtml, $el->edit, $el->mandatory,
$el->authVarname, $el->operator, $el->showDetail, $el->detailPos,
- $el->minInput, $el->helptext, $el->category, $el->id
+ $el->minInput, $el->helptext, $el->category, $wfsConfId
);
$t = array(
"i", "i", "i", "s", "i", "s", "s", "i", "i",
- "s", "i", "i", "s", "s", "i", "i", "i", "s", "s", "i"
+ "s", "i", "i", "s", "s", "i", "i", "i", "s", "s", "i", "i"
);
$res = db_prep_query($sql, $v, $t);
@@ -303,7 +303,7 @@
//
for ($i = 0; $i < count($wfsConf->elementArray); $i++) {
$el = $wfsConf->elementArray[$i];
- $success = WfsConfigurationElement::updateInDb($el);
+ $success = WfsConfigurationElement::updateInDb($wfsConf->id, $el);
if (!$success) {
db_rollback();
return null;
Modified: trunk/mapbender/sql/update_wfs_conf_element.sql
===================================================================
--- trunk/mapbender/sql/update_wfs_conf_element.sql 2009-06-19 12:12:43 UTC (rev 4048)
+++ trunk/mapbender/sql/update_wfs_conf_element.sql 2009-06-19 13:26:49 UTC (rev 4049)
@@ -18,4 +18,4 @@
f_min_input = $17,
f_helptext = $18,
f_category_name = $19
-WHERE f_id = $20
\ No newline at end of file
+WHERE f_id = $20 AND fkey_wfs_conf_id = $21
\ No newline at end of file
More information about the Mapbender_commits
mailing list