Project

General

Profile

Feature #23778 » emailSortByDate.patch

John Simmons, 2016-09-07 23:20

View differences:

app/helpers/application_helper.rb
s = link_to(text, issue_url(issue, :only_path => only_path),
:class => issue.css_classes, :title => title)
s << h(": #{subject}") if subject
s = h("#{issue.project} - ") + s if options[:project]
s = h("Due date #{issue.due_date} : #{issue.project} - ") + s if options[:project]
s
end
-
app/models/mailer.rb
end
issues_by_assignee.each do |assignee, issues|
#for each value in the hash, sort by due_date
issues = issues.sort_by do |item|
item[:due_date]
end
reminder(assignee, issues, days).deliver if assignee.is_a?(User) && assignee.active?
end
end
(2-2/2)