Vote #78231
未完了Issues which are assigned to group are not listed in reminders if 'users' parameter is specified
ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
9
version_id:
0
issue_org_id:
25049
author_id:
332
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
124
説明
Assume the following situation:
- John (id: 2) and Dave (id: 3) belong to a group.
- The group is an assignee of an issue which subject is "Assigned to group".
If you run "rake redmine:send_reminders users=2", the issue "Assigned to group" should be listed in the reminder which John receives. But in fact it is not.
This is a test code to catch the problem:
Index: test/unit/mailer_test.rb
===================================================================
--- test/unit/mailer_test.rb (revision 16332)
+++ test/unit/mailer_test.rb (working copy)
@@ -645,11 +645,18 @@
ActionMailer::Base.deliveries.each do |mail|
assert_mail_body_match 'Assigned to group', mail
end
+
+ ActionMailer::Base.deliveries.clear
+
+ Mailer.reminders(:days => 7, :users => ['2'])
+ assert_equal 1, ActionMailer::Base.deliveries.size
+ assert_equal %w(jsmith@somenet.foo), ActionMailer::Base.deliveries.map(&:bcc).flatten.sort
+ assert_mail_body_match 'Assigned to group', ActionMailer::Base.deliveries.first
end
end
def test_reminders_with_version_option
- with_settings :default_language => 'en' do
+ with_settings :default_language => 'en' do
version = Version.generate!(:name => 'Acme', :project_id => 1)
Issue.generate!(:assigned_to => User.find(2), :due_date => 5.days.from_now)
Issue.generate!(:assigned_to => User.find(3), :due_date => 5.days.from_now, :fixed_version => version)
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
blocks,New,2477,mail reminder for watchers
いいね!0