From 14bd039a8863b9de133f6bbd5b416ee09fc7db93 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Mon, 4 Sep 2023 02:12:03 +0300 Subject: [PATCH] fix email template variable --- lib/replace_email_variables.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/replace_email_variables.rb b/lib/replace_email_variables.rb index 33ffa859..b8af0750 100644 --- a/lib/replace_email_variables.rb +++ b/lib/replace_email_variables.rb @@ -29,7 +29,7 @@ module ReplaceEmailVariables text = text.gsub(SUBMISSION_LINK, submission_link) if submission_link text = text.gsub(DOCUMENTS_LINKS, build_documents_links_text(submitter)) - text.gsub(ACCOUNT_NAME, submitter.template.account.name) if submitter.template + text = text.gsub(ACCOUNT_NAME, submitter.template.account.name) if submitter.template text end