patch-app-models-mailer.rb.txt

Alexander Kriventsov, 2012-03-28 13:48

Download (568 Bytes)

 
1
--- /usr/local/www/redmine/app/models/mailer.rb.orig	2011-12-02 22:31:14.000000000 +0000
2
+++ /usr/local/www/redmine/app/models/mailer.rb	2012-03-28 11:45:09.000000000 +0000
3
@@ -354,7 +354,7 @@
4
                                           :conditions => s.conditions
5
                                     ).group_by(&:assigned_to)
6
     issues_by_assignee.each do |assignee, issues|
7
-      deliver_reminder(assignee, issues, days) if assignee && assignee.active?
8
+      deliver_reminder(assignee, issues, days) if assignee.is_a?(User) && assignee.active?
9
     end
10
   end
11