Fix "each" filter operator with missing tiddlers

Fixes 
print-window-tiddler
Jermolene 2014-10-05 16:25:01 +01:00
rodzic 535b695167
commit cc576b052e
1 zmienionych plików z 6 dodań i 1 usunięć
core/modules/filters

Wyświetl plik

@ -20,7 +20,12 @@ exports.each = function(source,operator,options) {
values = {};
source(function(tiddler,title) {
if(tiddler) {
var value = tiddler.getFieldString(operator.operand);
var value;
if((operator.operand === "") || (operator.operand === "title")) {
value = title;
} else {
value = tiddler.getFieldString(operator.operand);
}
if(!$tw.utils.hop(values,value)) {
values[value] = true;
results.push(title);