From 9a2363d06b139f2516202663e5363c68d0a3f317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 21 Jun 2010 08:08:13 +0000 Subject: [PATCH] Format.Filter.v1 may fail to read LowerBoundary and upperBoundary, r=bartvde git-svn-id: http://svn.openlayers.org/trunk/openlayers@10420 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/Filter/v1.js | 2 +- tests/Format/Filter/v1.html | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Format/Filter/v1.js b/lib/OpenLayers/Format/Filter/v1.js index 5556c1662b..d0eb67ce93 100644 --- a/lib/OpenLayers/Format/Filter/v1.js +++ b/lib/OpenLayers/Format/Filter/v1.js @@ -227,7 +227,7 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, { var obj = {}; this.readChildNodes(node, obj); var value = obj.value; - if(!value) { + if(value === undefined) { value = this.getChildValue(node); } return value; diff --git a/tests/Format/Filter/v1.html b/tests/Format/Filter/v1.html index 5471717387..a596521213 100644 --- a/tests/Format/Filter/v1.html +++ b/tests/Format/Filter/v1.html @@ -3,6 +3,35 @@