diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-02 16:59:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-02 16:59:15 +0000 |
commit | a06d2c41d5e54db8e434bf80aa1fe11d82ffb870 (patch) | |
tree | c9165105a540ed418b4183181ba9769cd636263a /app/models/mailer.rb | |
parent | 50c338b229eddd9772974bf64071c0b330ffb2c6 (diff) | |
download | redmine-a06d2c41d5e54db8e434bf80aa1fe11d82ffb870.tar.gz redmine-a06d2c41d5e54db8e434bf80aa1fe11d82ffb870.zip |
Fixed: Reminder emails shouldn't include archived projects (#1351).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1483 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/mailer.rb')
-rw-r--r-- | app/models/mailer.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb index aae374268..61e5d596c 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -164,7 +164,9 @@ class Mailer < ActionMailer::Base project = options[:project] ? Project.find(options[:project]) : nil tracker = options[:tracker] ? Tracker.find(options[:tracker]) : nil - s = ARCondition.new ["#{IssueStatus.table_name}.is_closed = ? AND #{Issue.table_name}.due_date <= ? AND #{Issue.table_name}.assigned_to_id IS NOT NULL", false, days.day.from_now.to_date] + s = ARCondition.new ["#{IssueStatus.table_name}.is_closed = ? AND #{Issue.table_name}.due_date <= ?", false, days.day.from_now.to_date] + s << "#{Issue.table_name}.assigned_to_id IS NOT NULL" + s << "#{Project.table_name}.status = #{Project::STATUS_ACTIVE}" s << "#{Issue.table_name}.project_id = #{project.id}" if project s << "#{Issue.table_name}.tracker_id = #{tracker.id}" if tracker |