mirror of
https://github.com/redmine/redmine.git
synced 2026-01-27 17:59:58 +01:00
Initialize watcher_user_ids for new records to prevent useless queries on each #watched_by?.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8554 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -119,6 +119,7 @@ class Issue < ActiveRecord::Base
|
||||
# set default values for new records only
|
||||
self.status ||= IssueStatus.default
|
||||
self.priority ||= IssuePriority.default
|
||||
self.watcher_user_ids = []
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user