From 6b86c5f78d879aad57c66b5a5ab206055cf30247 Mon Sep 17 00:00:00 2001 From: Jannes Bolling Date: Mon, 19 Oct 2020 10:37:13 +0200 Subject: [PATCH] recreate old during filter behaviour for backwardscompatibility --- src/ol/format/WFS.js | 2 +- test/spec/ol/format/wfs.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/format/WFS.js b/src/ol/format/WFS.js index f0983b1f04..aadbe7ec68 100644 --- a/src/ol/format/WFS.js +++ b/src/ol/format/WFS.js @@ -1105,7 +1105,7 @@ function writeDuringFilter(node, filter, objectStack) { const context = parent['context']; const version = context['version']; - writePropertyName(version, node, filter.propertyName); + writeExpression(FESNS[version], 'ValueReference', node, filter.propertyName); const timePeriod = createElementNS(GMLNS, 'TimePeriod'); node.appendChild(timePeriod); diff --git a/test/spec/ol/format/wfs.test.js b/test/spec/ol/format/wfs.test.js index fc30e14e5d..45be23a0ac 100644 --- a/test/spec/ol/format/wfs.test.js +++ b/test/spec/ol/format/wfs.test.js @@ -735,7 +735,7 @@ describe('ol.format.WFS', function () { ' typeName="states" srsName="EPSG:4326">' + ' ' + ' ' + - ' date_prop' + + ' date_prop' + ' ' + ' ' + ' ' +