Skip to content

Commit 8b8233d

Browse files
authored
Merge pull request #277 from ProcessMaker/bugfix/FOUR-3673
_parent variable does not seem to be working
2 parents 82a6ed0 + 4f55dd6 commit 8b8233d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/FormHtmlEditor.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ export default {
6161
}
6262
6363
try {
64+
const parent = Object.assign({_parent: this.validationData._parent}, this.validationData);
6465
if (this.renderVarHtml) {
6566
let escape = Mustache.escape;
6667
Mustache.escape = function(text) {return text;};
67-
let render = Mustache.render(this.content, {...this.customFunctions, ...this.validationData});
68+
let render = Mustache.render(this.content, {...this.customFunctions, ...this.validationData, ...parent});
6869
Mustache.escape = escape;
6970
return render;
7071
}
71-
return Mustache.render(this.content, {...this.customFunctions, ...this.validationData});
72+
return Mustache.render(this.content, {...this.customFunctions, ...this.validationData, ...parent});
7273
} catch (error) {
7374
if (this.renderVarHtml) {
7475
return this.renderVarName;

0 commit comments

Comments
 (0)