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>
print-window-tiddler
Xavier Cazin 2018-03-15 15:12:33 +01:00 zatwierdzone przez Jeremy Ruston
rodzic 47264c8cd5
commit f78190ef61
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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