mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-30 23:23:02 +00:00 
			
		
		
		
	Allow empty string as value parameter in SetWidget (#3164)
When occuring in a tiddler named "New Tiddler", the following construct should return ++ instead of +[[New Tiddler]]+ <$set name="myVariable" filter="[all[current]field:title[New Tiddler]]" value=""> +<<myVariable>>+ </$set>
This commit is contained in:
		 Xavier Cazin
					Xavier Cazin
				
			
				
					committed by
					
						 Jeremy Ruston
						Jeremy Ruston
					
				
			
			
				
	
			
			
			 Jeremy Ruston
						Jeremy Ruston
					
				
			
						parent
						
							47264c8cd5
						
					
				
				
					commit
					f78190ef61
				
			| @@ -70,7 +70,7 @@ SetWidget.prototype.getValue = function() { | ||||
| 		} | ||||
| 	} else if(this.setFilter) { | ||||
| 		var results = this.wiki.filterTiddlers(this.setFilter,this); | ||||
| 		if(!this.setValue) { | ||||
| 		if(this.setValue == null) { | ||||
| 			var select; | ||||
| 			if(this.setSelect) { | ||||
| 				select = parseInt(this.setSelect,10); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user