From 78eabaa7cb572d2c9ac8139cff1a29379e3a0680 Mon Sep 17 00:00:00 2001 From: grob Date: Mon, 23 Oct 2006 18:56:36 +0000 Subject: [PATCH] fixed bug in addField() that made it impossible to disable store, index and tokenize options for a field. --- helma/Search.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/helma/Search.js b/helma/Search.js index 6cbdf805..6a118fa9 100644 --- a/helma/Search.js +++ b/helma/Search.js @@ -17,9 +17,9 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // // -// $Revision: 1.3 $ +// $Revision: 1.4 $ // $Author: robert $ -// $Date: 2006/06/15 07:38:19 $ +// $Date: 2006/09/29 13:49:40 $ // @@ -1053,9 +1053,9 @@ helma.Search.Document.prototype.addField = function(name, value, param) { } var f = new pkg.Field(String(name), value, - param.store || true, - param.index || true, - param.tokenize || true); + typeof(param.store) == "boolean" ? param.store : true, + typeof(param.index) == "boolean" ? param.index : true, + typeof(param.tokenize) == "boolean" ? param.tokenize : true); this.getDocument().add(f); } return;