This commit is contained in:
yystopf 2022-02-17 09:36:49 +08:00
parent 5701c818ed
commit c956667ce0
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class MessageTemplate::IssueExpire < MessageTemplate
def self.get_email_message_content(receiver, issue) def self.get_email_message_content(receiver, issue)
if receiver.user_template_message_setting.present? 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 send_setting = send_setting.nil? ? UserTemplateMessageSetting.init_email_body["CreateOrAssign::IssueExpire"] : send_setting
return '', '', '' unless send_setting return '', '', '' unless send_setting
project = issue&.project project = issue&.project