diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-03 21:32:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-03 21:32:41 +0000 |
commit | cdb86d5ef7d21090e9ee8f58597a2ccc190b6818 (patch) | |
tree | 4ce93accd3f881b8df3fe2eae74cd15d13867661 /app/models/mailer.rb | |
parent | 3355ffe029fdecbe78a75f7f459bd93eae835a42 (diff) | |
download | redmine-cdb86d5ef7d21090e9ee8f58597a2ccc190b6818.tar.gz redmine-cdb86d5ef7d21090e9ee8f58597a2ccc190b6818.zip |
Fixed: no email notification on new project/version file added (#4966).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3532 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/mailer.rb')
-rw-r--r-- | app/models/mailer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 1834a7f8e..173e33c40 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -114,11 +114,11 @@ class Mailer < ActionMailer::Base when 'Project' added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container) added_to = "#{l(:label_project)}: #{container}" - recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)} + recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)}.collect {|u| u.mail} when 'Version' added_to_url = url_for(:controller => 'projects', :action => 'list_files', :id => container.project_id) added_to = "#{l(:label_version)}: #{container.name}" - recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)} + recipients container.project.notified_users.select {|user| user.allowed_to?(:view_files, container.project)}.collect {|u| u.mail} when 'Document' added_to_url = url_for(:controller => 'documents', :action => 'show', :id => container.id) added_to = "#{l(:label_document)}: #{container.title}" |