Feature #23778 » emailSortByDate.patch
| 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
|
||
- « Previous
- 1
- 2
- Next »