Notification mails not send when editing a ticket
Notification mails are not send when editing a ticket!
Mails are send on
- test email
- creating a ticket
- creating a news entry
- commenting a news entry
I turned on email debug output and when editing a ticket, redmine doesn't even try to send an email (at least there's no output in the log).
I'm currently on 3.2.2 and I think this started after upgrading from 2.6.something (to 3.2).
#1 Updated by Carsten Schurig almost 5 years ago
app/models/journal.rb I changed:
def send_notification logger.error("NOTIFICATION JOURNAL") if notify? && (Setting.notified_events.include?('issue_updated') || (Setting.notified_events.include?('issue_note_added') && notes.present?) || (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?) ) Mailer.deliver_issue_edit(self) end end
and the expected output is never shown in the log file, thus I assume,
send_notification isn't called at all. BTW I did the same in
issue.rb and on ticket creation I can see the log entry...