0001-Reload-watcher_users-before-sending-issue-notificati.patch

Holger Just, 2016-07-08 16:03

Download (875 Bytes)

View differences:

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
1687
-