From: Jean-Philippe Lang Date: Mon, 9 Apr 2012 20:23:36 +0000 (+0000) Subject: Fixed that rake redmine:send_reminders fails if an issue is assigned to a group ... X-Git-Tag: 2.0.0~206 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e4ba838c6b27974c4f79dbc00383d49e400f2bf3;p=redmine.git 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 --- 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