mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust submission.name variable
This commit is contained in:
1 parent
2c9f1b999e
commit
09bd831d54
1 file changed
+3
-1
@@ -35,7 +35,9 @@ module ReplaceEmailVariables
|
||||
text = replace(text, TEMPLATE_NAME, html_escape:) do
|
||||
(submitter.template || submitter.submission.template || submitter.submission).name
|
||||
end
|
||||
text = replace(text, SUBMISSION_NAME, html_escape:) { submitter.submission.name }
|
||||
text = replace(text, SUBMISSION_NAME, html_escape:) do
|
||||
submitter.submission.name.presence || submitter.submission.template&.name
|
||||
end
|
||||
text = replace(text, TEMPLATE_ID, html_escape:) { submitter.template.id }
|
||||
text = replace(text, SUBMITTER_ID, html_escape:) { submitter.id }
|
||||
text = replace(text, SUBMITTER_SLUG, html_escape:) { submitter.slug }
|
||||
|
||||
Reference in new issue
Block a user