From 08c7a8805b2b8e53064f578026dac11d79e97495 Mon Sep 17 00:00:00 2001 From: Saq Imtiaz Date: Sat, 8 Jun 2024 18:12:51 +0200 Subject: [PATCH] Fix: action-log should not evaluate functions (#8239) --- core/modules/widgets/action-log.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/modules/widgets/action-log.js b/core/modules/widgets/action-log.js index fc8412006..7b1d1e904 100644 --- a/core/modules/widgets/action-log.js +++ b/core/modules/widgets/action-log.js @@ -66,7 +66,12 @@ LogWidget.prototype.log = function() { }); for(var v in this.variables) { - allVars[v] = this.getVariable(v,{defaultValue:""}); + var variable = this.parentWidget && this.parentWidget.variables[v]; + if(variable && variable.isFunctionDefinition) { + allVars[v] = variable.value; + } else { + allVars[v] = this.getVariable(v,{defaultValue:""}); + } } if(this.filter) { filteredVars = this.wiki.compileFilter(this.filter).call(this.wiki,this.wiki.makeTiddlerIterator(allVars));