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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Dec 3 15:44:20 EST 2009


Author: armin11
Date: 2009-12-03 15:44:20 -0500 (Thu, 03 Dec 2009)
New Revision: 5072

Modified:
   trunk/mapbender/http/javascripts/wfs.php
Log:
Bug with updating features where attributes should be erased. The WFS spec demands to send a tag without value!

Modified: trunk/mapbender/http/javascripts/wfs.php
===================================================================
--- trunk/mapbender/http/javascripts/wfs.php	2009-12-03 15:05:41 UTC (rev 5071)
+++ trunk/mapbender/http/javascripts/wfs.php	2009-12-03 20:44:20 UTC (rev 5072)
@@ -485,6 +485,12 @@
 				str += '<wfs:Value><![CDATA['+d.get(m).e.getValue(i)+']]></wfs:Value>';
 				str += '</wfs:Property>';
 			}
+			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:Property>';
+			}
+			
 		}
 		for(var j=0; j<myconf['element'].length; j++){
 			if(myconf['element'][j]['f_geom'] == 1){



More information about the Mapbender_commits mailing list