Fix get variable info params (#8179)

* return params for every variable type

* add tests for widget getVariableInfo.params

* make param values different to names
This commit is contained in:
Mario Pietsch
2024-05-29 11:14:21 +01:00
committed by GitHub
parent 15001020fe
commit 5856bd8342
2 changed files with 97 additions and 0 deletions
+2
View File
@@ -163,6 +163,8 @@ Widget.prototype.getVariableInfo = function(name,options) {
});
resultList = this.wiki.filterTiddlers(value,this.makeFakeWidgetWithVariables(variables),options.source);
value = resultList[0] || "";
} else {
params = variable.params;
}
return {
text: value,