From 4cf7f99de0dbb3003e0afc20b0472e4fc8b9ba28 Mon Sep 17 00:00:00 2001 From: tschaub Date: Thu, 25 Oct 2012 12:31:20 -0600 Subject: [PATCH] Work with formats that copy filter writers --- lib/OpenLayers/Format/Filter/v1.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Format/Filter/v1.js b/lib/OpenLayers/Format/Filter/v1.js index 74c5e7a381..3bb4214094 100644 --- a/lib/OpenLayers/Format/Filter/v1.js +++ b/lib/OpenLayers/Format/Filter/v1.js @@ -425,8 +425,10 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, { }); }, "Literal": function(value) { + var encode = this.encodeLiteral || + OpenLayers.Format.Filter.v1.prototype.encodeLiteral; return this.createElementNSPlus("ogc:Literal", { - value: this.encodeLiteral(value) + value: encode(value) }); }, "LowerBoundary": function(filter) {