Patch #24072 » mailer.rb
1 |
|
---|---|
2 |
|
3 |
set_language_if_valid user.language |
4 |
@issues = issues |
5 |
@days = days |
6 |
@issues_url = url_for(:controller => 'issues', :action => 'index', |
7 |
:set_filter => 1, :assigned_to_id => user.id, |
8 |
:sort => 'due_date:asc') |
9 |
|
10 |
|
11 |
|
12 |
#added this loop within def reminder
|
13 |
x=0 |
14 |
@issues.each do |issue| |
15 |
if(issue.due_date >= DateTime.now ) |
16 |
x = x + 1 |
17 |
end
|
18 |
end
|
19 |
mail :to => user, |
20 |
:subject => l(:mail_subject_reminder, :count => x, :days => days) #changed to be :count => x |
21 |
end
|
22 |
|
23 |
|
24 |
|
25 |
scope = scope.where(:assigned_to_id => user_ids) if user_ids.present? |
26 |
scope = scope.where(:project_id => project.id) if project |
27 |
scope = scope.where(:fixed_version_id => target_version_id) if target_version_id.present? |
28 |
scope = scope.where(:tracker_id => tracker.id) if tracker |
29 |
scope = scope.order('due_date') #added this line within self.reminders |
- « Previous
- 1
- 2
- Next »