mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 15:42:59 +00:00 
			
		
		
		
	Fixed problem with list filter
It was failing if the list tiddler was missing
This commit is contained in:
		| @@ -195,10 +195,10 @@ exports.operators = { | |||||||
| 	"list": { // Select all tiddlers that are listed (or not listed) in the specified tiddler | 	"list": { // Select all tiddlers that are listed (or not listed) in the specified tiddler | ||||||
| 		selector: function(operator) { | 		selector: function(operator) { | ||||||
| 			if(operator.prefix === "!") { | 			if(operator.prefix === "!") { | ||||||
| 				return "var list = this.getTiddler(\"" + $tw.utils.stringify(operator.operand) + "\").fields.text.split(\"\\n\");" + | 				return "var list = this.getTextReference(\"" + $tw.utils.stringify(operator.operand) + "\",\"\").split(\"\\n\");" + | ||||||
| 					"for(title in source) {if(list.indexOf(title) === -1) {$tw.utils.pushTop(subResults,title);}}"; | 					"for(title in source) {if(list.indexOf(title) === -1) {$tw.utils.pushTop(subResults,title);}}"; | ||||||
| 			} else { | 			} else { | ||||||
| 				return "$tw.utils.pushTop(subResults,this.getTiddler(\"" + $tw.utils.stringify(operator.operand) + "\").fields.text.split(\"\\n\"));"; | 				return "$tw.utils.pushTop(subResults,this.getTextReference(\"" + $tw.utils.stringify(operator.operand) + "\",\"\").split(\"\\n\"));"; | ||||||
| 			} | 			} | ||||||
| 		}, | 		}, | ||||||
| 		filter: function(operator) { | 		filter: function(operator) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jeremy Ruston
					Jeremy Ruston