プロジェクト

全般

プロフィール

Vote #78720

完了

Editing issues no longer sends notifications to previous assignee

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
133
issue_org_id:
26627
author_id:
305671
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
132
ステータス-->[Closed]

説明

Editing issues no longer sends notifications to previous assignee.

This is happening because of the change made in #25794, which changed app/models/journal.rb from after_create :send_notification to after_commit :send_notification, :on => :create. This is causing clear_assigned_to_was() in app/models/issue.rb to be called before the notifications are being generated and so the previous assignee variable is already set to nil when it's time to send the notification. after_commit runs too late.

I know this affects up through 3.4.2, but I don't know how it affects the new master.

Here's the specific line change: https://github.com/redmine/redmine/commit/9439cae70fab58b8cafdd753aa83135d4279345d#diff-b3b2ca7a3d44a3146792e51535d4acd5


journals

--------------------------------------------------------------------------------
Confirmed.
I don't know why "test_update_should_notify_previous_assignee" does not catch.
source:tags/3.4.2/test/unit/issue_test.rb#L2441
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Fixed in r17002.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Thank you!
--------------------------------------------------------------------------------


related_issues

relates,Closed,25794,Mass-deleted attachments are not represented correctly in email notifications
duplicates,Closed,26628,When assignee change, previous assignee did't notified

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョン3.4.3_133 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0