Project

General

Profile

Defect #10006 ยป mailer.rb.patch

Yuki Kita, 2012-01-17 03:31

View differences:

app/models/mailer.rb
343 343

  
344 344
    scope = Issue.scoped(:conditions => ["#{Issue.table_name}.assigned_to_id IS NOT NULL" +
345 345
      " AND #{Project.table_name}.status = #{Project::STATUS_ACTIVE}" +
346
      " AND #{Issue.table_name}.due_date <= ?", days.day.from_now.to_date]
346
      " AND #{IssueStatus.table_name}.is_closed = ?" +
347
      " AND #{Issue.table_name}.due_date <= ?", false, days.day.from_now.to_date]
347 348
    )
348 349
    scope = scope.scoped(:conditions => {:assigned_to_id => user_ids}) if user_ids.present?
349 350
    scope = scope.scoped(:conditions => {:project_id => project.id}) if project
    (1-1/1)