Defect #26627
closedEditing issues no longer sends notifications to previous assignee
0%
Description
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
Related issues