fix for WFS-T delete and update have improper typeName. Includes tests.
Vague +1 from tschaub. WFS format now matches the more modern WFS-T v1 format as confirmed by cargo culting the WFS-T tests. (Closes #1787, #1471) git-svn-id: http://svn.openlayers.org/trunk/openlayers@8978 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -135,7 +135,8 @@ OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, {
|
||||
update: function(feature) {
|
||||
if (!feature.fid) { OpenLayers.Console.userError(OpenLayers.i18n("noFID")); }
|
||||
var updateNode = this.createElementNS(this.wfsns, 'wfs:Update');
|
||||
updateNode.setAttribute("typeName", this.layerName);
|
||||
updateNode.setAttribute("typeName", this.featurePrefix + ':' + this.featureName);
|
||||
updateNode.setAttribute("xmlns:" + this.featurePrefix, this.featureNS);
|
||||
|
||||
var propertyNode = this.createElementNS(this.wfsns, 'wfs:Property');
|
||||
var nameNode = this.createElementNS(this.wfsns, 'wfs:Name');
|
||||
@@ -194,7 +195,8 @@ OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, {
|
||||
return false;
|
||||
}
|
||||
var deleteNode = this.createElementNS(this.wfsns, 'wfs:Delete');
|
||||
deleteNode.setAttribute("typeName", this.layerName);
|
||||
deleteNode.setAttribute("typeName", this.featurePrefix + ':' + this.featureName);
|
||||
deleteNode.setAttribute("xmlns:" + this.featurePrefix, this.featureNS);
|
||||
|
||||
var filterNode = this.createElementNS(this.ogcns, 'ogc:Filter');
|
||||
var filterIdNode = this.createElementNS(this.ogcns, 'ogc:FeatureId');
|
||||
|
||||
Reference in New Issue
Block a user