summaryrefslogtreecommitdiffstats
path: root/app/models/mail_handler.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-28 14:48:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-28 14:48:23 +0000
commit94b04383f9e6c242a56b5f4b3fe86ad2da77ce85 (patch)
tree980081875086c042f0423beec2c5de2beed0d6cb /app/models/mail_handler.rb
parent35f5e36838952a20693c8d6fa2a926648739a975 (diff)
downloadredmine-94b04383f9e6c242a56b5f4b3fe86ad2da77ce85.tar.gz
redmine-94b04383f9e6c242a56b5f4b3fe86ad2da77ce85.zip
Mail handler: add watchers before sending notification (#2245).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2195 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/mail_handler.rb')
-rw-r--r--app/models/mail_handler.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index a7264d483..d7fbfbaf1 100644
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -93,11 +93,10 @@ class MailHandler < ActionMailer::Base
issue.save!
add_attachments(issue)
logger.info "MailHandler: issue ##{issue.id} created by #{user}" if logger && logger.info
- # send notification before adding watchers since they were cc'ed
- Mailer.deliver_issue_add(issue) if Setting.notified_events.include?('issue_added')
# add To and Cc as watchers
add_watchers(issue)
-
+ # send notification after adding watchers so that they can reply to Redmine
+ Mailer.deliver_issue_add(issue) if Setting.notified_events.include?('issue_added')
issue
end