From 899c5cb835560ce550d41734f75242b576546eed Mon Sep 17 00:00:00 2001 From: Matt Lauber Date: Thu, 18 Feb 2016 11:51:29 -0500 Subject: [PATCH] Update has.js --- core/modules/filters/has.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/filters/has.js b/core/modules/filters/has.js index 7b2fde46d..7a1738782 100644 --- a/core/modules/filters/has.js +++ b/core/modules/filters/has.js @@ -25,7 +25,7 @@ exports.has = function(source,operator,options) { }); } else { source(function(tiddler,title) { - if(tiddler && $tw.utils.hop(tiddler.fields,operator.operand) && (tiddler.fields[operator.operand] !== "" || ($tw.utils.isArray(tiddler.fields[operator.operand]) && tiddler.fields[operator.operand].length == 0))) { + if(tiddler && $tw.utils.hop(tiddler.fields,operator.operand) && !(tiddler.fields[operator.operand] === "" || tiddler.fields[operator.operand].length === 0)) { results.push(title); } });