diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-09 20:23:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-09 20:23:36 +0000 |
commit | e4ba838c6b27974c4f79dbc00383d49e400f2bf3 (patch) | |
tree | 27193b6b500d06658ecd5d7cba7ba090647230f4 /app | |
parent | 269e9057ddff73081eadffd533ab3ad1a18b0011 (diff) | |
download | redmine-e4ba838c6b27974c4f79dbc00383d49e400f2bf3.tar.gz redmine-e4ba838c6b27974c4f79dbc00383d49e400f2bf3.zip |
Fixed that rake redmine:send_reminders fails if an issue is assigned to a group (#10555).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9380 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/mailer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 96bb83c57..113a77337 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -359,7 +359,7 @@ class Mailer < ActionMailer::Base issues_by_assignee = scope.all(:include => [:status, :assigned_to, :project, :tracker]).group_by(&:assigned_to) issues_by_assignee.each do |assignee, issues| - deliver_reminder(assignee, issues, days) if assignee && assignee.active? + deliver_reminder(assignee, issues, days) if assignee.is_a?(User) && assignee.active? end end |