From ad1c2a6571af82ea601dee76838097cc2d7aee55 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 23 Feb 2017 14:27:43 +0000 Subject: [PATCH] Fix problem with 'has' operator Fixes problem introduced in 6085936475851a8f93a05a52f9e7ddcb066c6569 --- 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 ab73c1e60..d05da4113 100644 --- a/core/modules/filters/has.js +++ b/core/modules/filters/has.js @@ -36,7 +36,7 @@ exports.has = function(source,operator,options) { } else { if(invert) { source(function(tiddler,title) { - if(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand] !== "")) { + if(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand] === "")) { results.push(title); } });