Project

General

Profile

Patch #23278 ยป 0001-Reload-watcher_users-before-sending-issue-notificati.patch

Holger Just, 2016-07-08 16:03

View differences:

app/models/issue.rb
def send_notification
if notify? && Setting.notified_events.include?('issue_added')
# Explicitly reload the has_many through relation watcher_users to help
# it notice new watchers we might have added since the issue was first
# created.
watcher_users.reload
Mailer.deliver_issue_add(self)
end
end
    (1-1/1)