From 70ed6e6ad325f602193582d9141ddee942ac28be Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 27 Jan 2014 16:24:28 +0000 Subject: [PATCH] Fixed problem with list filter A bug was preventing the tiddler title from being omitted in the list filter (ie, [list[HelloThere!!field]] worked, but [list[!!field]] did not. --- core/modules/filters/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/filters/list.js b/core/modules/filters/list.js index b7e396c3c..f64c8fe7b 100644 --- a/core/modules/filters/list.js +++ b/core/modules/filters/list.js @@ -18,7 +18,7 @@ Export our filter function exports.list = function(source,operator,options) { var results = [], tr = $tw.utils.parseTextReference(operator.operand), - list = options.wiki.getTiddlerList(tr.title,tr.field,tr.index); + list = options.wiki.getTiddlerList(tr.title || options.currTiddlerTitle,tr.field,tr.index); function checkTiddler(title) { var match = list.indexOf(title) !== -1; if(operator.prefix === "!") {