Patch #23278 ยป 0001-Reload-watcher_users-before-sending-issue-notificati.patch
| 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
|
||