From 2dd7a8d4b984173ba00ca476e8824b886fcb0c79 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 30 May 2007 09:11:33 +0000 Subject: [PATCH] Fix for #729, WFS Transaction attributes missing, reported by Andreas. git-svn-id: http://svn.openlayers.org/trunk/openlayers@3203 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/WFS.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/OpenLayers/Format/WFS.js b/lib/OpenLayers/Format/WFS.js index ac3c7f7e43..9e269b833f 100644 --- a/lib/OpenLayers/Format/WFS.js +++ b/lib/OpenLayers/Format/WFS.js @@ -47,6 +47,8 @@ OpenLayers.Format.WFS.prototype = write: function(features) { var transaction = document.createElementNS('http://www.opengis.net/wfs', 'wfs:Transaction'); + transaction.setAttribute("version","1.0.0"); + transaction.setAttribute("service","WFS"); for (var i=0; i < features.length; i++) { switch (features[i].state) { case OpenLayers.State.INSERT: