mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
"View all issues" link in email reminders points to issues list which does not include issues assigned to a group (#30955).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17918 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
193b02567b
commit
0f39eec9e0
@ -542,7 +542,7 @@ class Mailer < ActionMailer::Base
|
|||||||
@issues = issues
|
@issues = issues
|
||||||
@days = days
|
@days = days
|
||||||
@issues_url = url_for(:controller => 'issues', :action => 'index',
|
@issues_url = url_for(:controller => 'issues', :action => 'index',
|
||||||
:set_filter => 1, :assigned_to_id => user.id,
|
:set_filter => 1, :assigned_to_id => 'me',
|
||||||
:sort => 'due_date:asc')
|
:sort => 'due_date:asc')
|
||||||
mail :to => user,
|
mail :to => user,
|
||||||
:subject => l(:mail_subject_reminder, :count => issues.size, :days => days)
|
:subject => l(:mail_subject_reminder, :count => issues.size, :days => days)
|
||||||
|
|||||||
@ -604,6 +604,11 @@ class MailerTest < ActiveSupport::TestCase
|
|||||||
mail = last_email
|
mail = last_email
|
||||||
assert mail.bcc.include?('dlopper@somenet.foo')
|
assert mail.bcc.include?('dlopper@somenet.foo')
|
||||||
assert_mail_body_match 'Bug #3: Error 281 when updating a recipe', mail
|
assert_mail_body_match 'Bug #3: Error 281 when updating a recipe', mail
|
||||||
|
assert_select_email do
|
||||||
|
assert_select 'a[href=?]',
|
||||||
|
'http://localhost:3000/issues?assigned_to_id=me&set_filter=1&sort=due_date%3Aasc',
|
||||||
|
:text => 'View all issues'
|
||||||
|
end
|
||||||
assert_equal '1 issue(s) due in the next 42 days', mail.subject
|
assert_equal '1 issue(s) due in the next 42 days', mail.subject
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user