mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
adjust submission.name variable
This commit is contained in:
@@ -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