1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Merge pull request #2284 from mklauber/patch-2

Fix for #2274
This commit is contained in:
Jeremy Ruston 2016-02-16 16:37:46 +00:00
commit 1f4df88960

View File

@ -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] !== "") {
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))) {
results.push(title);
}
});