From f1577494a6784e661a680fc04bd11304a738e374 Mon Sep 17 00:00:00 2001 From: grob Date: Thu, 10 Apr 2008 09:55:03 +0000 Subject: [PATCH] bugfix in Document.prototype.getFields(): don't use getField(), as this returns only the first of multiple fields with the same name --- helma/Search.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helma/Search.js b/helma/Search.js index e0772eae..2870e11b 100644 --- a/helma/Search.js +++ b/helma/Search.js @@ -1154,8 +1154,8 @@ helma.Search.Document.prototype.getField = function(name) { var f = this.getDocument().getField(name); if (f != null) { return new helma.Search.Document.Field(f); - } - return null; + } + return null; }; /** @@ -1168,7 +1168,7 @@ helma.Search.Document.prototype.getFields = function() { var size = fields.size(); var result = new Array(size); for (var i=0; i