|
|
|
@ -380,7 +380,15 @@ class Mailer < ActionMailer::Base
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# issue截止时间提醒
|
|
|
|
|
def issue_due_date(issue, recipients)
|
|
|
|
|
def issue_due_date(issue)
|
|
|
|
|
recipients ||= []
|
|
|
|
|
if issue.author.id != issue.assigned_to_id
|
|
|
|
|
recipients << issue.author.mail
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 被指派人邮箱地址加入数组
|
|
|
|
|
recipients << issue.assigned_to.mail
|
|
|
|
|
# cc = wiki_content.page.wiki.watcher_recipients - recipients
|
|
|
|
|
@author = issue.author
|
|
|
|
|
@issue_name = issue.subject
|
|
|
|
|
@issue_url = url_for(:controller => 'issues', :action => 'show', :id => issue.id)
|
|
|
|
|