From 73cfd1021809e97906ecfd5dacdf2337da3abae9 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 17 Apr 2014 16:10:50 +0100 Subject: [PATCH] Fix regression with untagged filter operator Restored previous behaviour of considering a missing tiddler to be untagged. --- core/modules/filters/untagged.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/modules/filters/untagged.js b/core/modules/filters/untagged.js index 31a1d1c4f..5a08b4edc 100644 --- a/core/modules/filters/untagged.js +++ b/core/modules/filters/untagged.js @@ -25,10 +25,8 @@ exports.untagged = function(source,operator,options) { }); } else { source(function(tiddler,title) { - if(tiddler) { - if(!tiddler.hasField("tags") || ($tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length === 0)) { - $tw.utils.pushTop(results,title); - } + if(!tiddler || !tiddler.hasField("tags") || ($tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length === 0)) { + $tw.utils.pushTop(results,title); } }); }