Project

General

Profile

Defect #25794

Updated by Mischa The Evil over 7 years ago

When deleting more than one attachment through the mass-delete attachments feature on the issue edit pane, only the first deleted attachment is in email notifications that are sent out for this event. The journal details are also created for the remaining deleted attachments, but they are not part of the email notifications. 

 This is due to source:/trunk/app/models/issue.rb@16545#L1742 source:/trunk/app/models/issue.rb@15650#L1612 calling @current_journal.save@ after each deleted attachment. This causes the email notification for the journal to be sent on the first time it is called, still missing the other attachment deletions. 

 I'm not quite sure of the best way to solve this as removing the @currrent_journal.save@ messes with other things, for example removing a single attachment via clicking the trash bin next to it.

Back