Project

General

Profile

Feature #23778 » emailSortByDate.patch

John Simmons, 2016-09-07 23:20

View differences:

app/helpers/application_helper.rb
87 87
    s = link_to(text, issue_url(issue, :only_path => only_path),
88 88
                :class => issue.css_classes, :title => title)
89 89
    s << h(": #{subject}") if subject
90
    s = h("#{issue.project} - ") + s if options[:project]
90
    s = h("Due date #{issue.due_date} : #{issue.project} - ") + s if options[:project]
91 91
    s
92 92
  end
93 93

  
94
- 
app/models/mailer.rb
406 406
    end
407 407

  
408 408
    issues_by_assignee.each do |assignee, issues|
409
      #for each value in the hash, sort by due_date
410
      issues = issues.sort_by do |item|
411
        item[:due_date]
412
      end
409 413
      reminder(assignee, issues, days).deliver if assignee.is_a?(User) && assignee.active?
410 414
    end
411 415
  end
(2-2/2)