Skip to content

Commit

Permalink
do not use viewParams if FID filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van den Eijnden committed Jul 18, 2014
1 parent 60e43cd commit 147f40d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/static/script/app/AsBuilt/plugins/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ Ext.ns("AsBuilt.plugins");
// see https://github.com/openlayers/openlayers/pull/968
// TODO remove use of "global" AsBuilt.viewParams
OpenLayers.Format.WFST.v1.prototype.writers["wfs"]["GetFeature"] = function(options) {
var viewParams;
if (!(options.filter instanceof OpenLayers.Filter.FeatureId)) {
viewParams = AsBuilt.viewParams;
}
var node = this.createElementNSPlus("wfs:GetFeature", {
attributes: {
service: "WFS",
version: this.version,
handle: options && options.handle,
outputFormat: options && options.outputFormat,
maxFeatures: options && options.maxFeatures,
viewParams: AsBuilt.viewParams,
viewParams: viewParams,
"xsi:schemaLocation": this.schemaLocationAttr(options)
}
});
Expand Down

0 comments on commit 147f40d

Please sign in to comment.