プロジェクト

全般

プロフィール

Vote #66721

完了

Defect #4671 No Email Notification on New File Added to Redmine

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
開始日:
2010/03/02
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
18
issue_org_id:
4966
author_id:
4855
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

if submit any changes to the issues, we can see in production.log the message like this:

Sending email notification to: name1.surname1@email.domain.com, name2.surname2@email.domain.com, name3.surname3@email.domain.com

but if we add a new document or upload a file, we can see another recipients list:

Sending email notification to: Name1 Surname1, Name2 Surname2, Name3 Surname3

and the notification is not received in the last case.


Index: app/models/mailer.rb
===================================================================
--- app/models/mailer.rb        (revision 3521)
+++ app/models/mailer.rb        (working copy)
@@ -114,11 +114,11 @@
     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  {|m| m.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 {|m| m.mail}
     when 'Document'
       added_to_url = url_for(:controller => 'documents', :action => 'show', :id => container.id)
       added_to = "#{l(:label_document)}: #{container.title}" 

journals

This patch is also might be applied to fix #4920
--------------------------------------------------------------------------------
Fixed in r3532. Thanks.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,4920,Email notifications on file upload sent to empty recipient list

Admin Redmine さんがほぼ2年前に更新

  • カテゴリEmail notifications_9 にセット
  • 対象バージョン0.9.4_18 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0