From c956667ce0951e194359fcbbd2acd51a4860888e Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 17 Feb 2022 09:36:49 +0800 Subject: [PATCH] fix --- app/models/message_template/issue_expire.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/message_template/issue_expire.rb b/app/models/message_template/issue_expire.rb index 206a09882..09ae80880 100644 --- a/app/models/message_template/issue_expire.rb +++ b/app/models/message_template/issue_expire.rb @@ -38,7 +38,7 @@ class MessageTemplate::IssueExpire < MessageTemplate def self.get_email_message_content(receiver, issue) if receiver.user_template_message_setting.present? - send_setting = receiver.user_template_message_setting.init_email_body["CreateOrAssign::IssueExpire"] + send_setting = receiver.user_template_message_setting.email_body["CreateOrAssign::IssueExpire"] send_setting = send_setting.nil? ? UserTemplateMessageSetting.init_email_body["CreateOrAssign::IssueExpire"] : send_setting return '', '', '' unless send_setting project = issue&.project