1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 02:19:55 +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 2018-03-15 15:12:33 +01:00 committed by Jeremy Ruston
parent 47264c8cd5
commit f78190ef61

View File

@ -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);