[Mapbender-commits] r1036 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jan 24 09:07:18 EST 2007


Author: christoph
Date: 2007-01-24 09:07:18 -0500 (Wed, 24 Jan 2007)
New Revision: 1036

Modified:
   trunk/mapbender/http/javascripts/wfs.js
Log:
excluded fid in wfs properties

Modified: trunk/mapbender/http/javascripts/wfs.js
===================================================================
--- trunk/mapbender/http/javascripts/wfs.js	2007-01-24 13:47:59 UTC (rev 1035)
+++ trunk/mapbender/http/javascripts/wfs.js	2007-01-24 14:07:18 UTC (rev 1036)
@@ -209,7 +209,7 @@
 	if (type == "save") {
 		str += '<wfs:Insert><'+ myconf['featuretype_name']+'>';
 		for(var i=0; i<d.get(m).e.count(); i++){
-			if(d.get(m).e.getValue(i) != ""){
+			if(d.get(m).e.getValue(i) != "" && d.get(m).e.getName(i) != "fid"){
 				var tmp = d.get(m).e.getName(i);
 				str += '<' + tmp  + '>' + d.get(m).e.getValue(i) + '</' + tmp  + '>';
 			}
@@ -255,7 +255,7 @@
 	else if (type == "update") {
 		str += '<wfs:Update typeName="'+ myconf['featuretype_name']+'">';
 		for(var i=0; i<d.get(m).e.count(); i++){
-			if(d.get(m).e.getValue(i) != ""){
+			if(d.get(m).e.getValue(i) != "" && d.get(m).e.getName(i) != "fid"){
 				str += '<wfs:Property>';
 				str += '<wfs:Name>'+d.get(m).e.getName(i)+'</wfs:Name>';
 				str += '<wfs:Value>'+d.get(m).e.getValue(i)+'</wfs:Value>';



More information about the Mapbender_commits mailing list