minor change to Protocol.CSW to deal with the situation where the GeoExt ProtocolProxy is configured with setParamsAsOptions true

This commit is contained in:
Bart van den Eijnden
2012-03-22 11:09:38 +01:00
parent 067a11f1d9
commit 965e269cfd

View File

@@ -61,7 +61,7 @@ OpenLayers.Protocol.CSW.v2_0_2 = OpenLayers.Class(OpenLayers.Protocol, {
OpenLayers.Util.applyDefaults(options, this.options || {});
var response = new OpenLayers.Protocol.Response({requestType: "read"});
var data = this.format.write(options.params);
var data = this.format.write(options.params || options);
response.priv = OpenLayers.Request.POST({
url: options.url,