Patch #23278 ยป 0001-Reload-watcher_users-before-sending-issue-notificati.patch
app/models/issue.rb | ||
---|---|---|
1681 | 1681 | |
1682 | 1682 |
def send_notification |
1683 | 1683 |
if notify? && Setting.notified_events.include?('issue_added') |
1684 |
# Explicitly reload the has_many through relation watcher_users to help |
|
1685 |
# it notice new watchers we might have added since the issue was first |
|
1686 |
# created. |
|
1687 |
watcher_users.reload |
|
1688 | ||
1684 | 1689 |
Mailer.deliver_issue_add(self) |
1685 | 1690 |
end |
1686 | 1691 |
end |