|
|
|
@ -147,13 +147,11 @@ class Mailer < ActionMailer::Base
|
|
|
|
|
@project_url = url_for(:controller => 'projects', :action => 'show', :id => issue.project_id, :token => @token.value)
|
|
|
|
|
|
|
|
|
|
@user_url = url_for(my_account_url(user,:token => @token.value))
|
|
|
|
|
cc = nil
|
|
|
|
|
if recipients == issue.recipients[0]
|
|
|
|
|
cc = issue.watcher_recipients - issue.recipients
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
subject = "[#{issue.project.name} - #{issue.tracker.name} ##{issue_id}] (#{issue.status.name}) #{issue.subject}"
|
|
|
|
|
mail(:to => recipients,
|
|
|
|
|
:cc => cc,
|
|
|
|
|
|
|
|
|
|
:subject => subject)
|
|
|
|
|
end
|
|
|
|
|
# issue.attachments.each do |attach|
|
|
|
|
@ -198,11 +196,7 @@ class Mailer < ActionMailer::Base
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Watchers in cc
|
|
|
|
|
cc = nil
|
|
|
|
|
if recipients == journal.recipients[0]
|
|
|
|
|
cc = journal.watcher_recipients - journal.recipients
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s = "[#{issue.project.name} - #{issue.tracker.name} ##{issue_id}] "
|
|
|
|
|
s << "(#{issue.status.name}) " if journal.new_value_for('status_id')
|
|
|
|
@ -211,7 +205,7 @@ class Mailer < ActionMailer::Base
|
|
|
|
|
@journal = journal
|
|
|
|
|
# @issue_url = url_for(:controller => 'issues', :action => 'show', :id => issue, :anchor => "change-#{journal.id}")
|
|
|
|
|
mail(:to => recipients,
|
|
|
|
|
:cc => cc,
|
|
|
|
|
|
|
|
|
|
:subject => s)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|