diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/journal.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index 5468c8629..24c54544b 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -354,7 +354,8 @@ class Journal < ApplicationRecord (Setting.notified_events.include?('issue_status_updated') && new_status.present?) || (Setting.notified_events.include?('issue_assigned_to_updated') && detail_for_attribute('assigned_to_id').present?) || (Setting.notified_events.include?('issue_priority_updated') && new_value_for('priority_id').present?) || - (Setting.notified_events.include?('issue_fixed_version_updated') && detail_for_attribute('fixed_version_id').present?) + (Setting.notified_events.include?('issue_fixed_version_updated') && detail_for_attribute('fixed_version_id').present?) || + (Setting.notified_events.include?('issue_attachment_added') && details.any? {|d| d.property == 'attachment' && d.value }) ) Mailer.deliver_issue_edit(self) end |