##// END OF EJS Templates
Initialize watcher_user_ids for new records to prevent useless queries on each #watched_by?....
Jean-Philippe Lang -
r8434:906fcd290cac
parent child
Show More
@@ -119,6 +119,7 class Issue < ActiveRecord::Base
119 # set default values for new records only
119 # set default values for new records only
120 self.status ||= IssueStatus.default
120 self.status ||= IssueStatus.default
121 self.priority ||= IssuePriority.default
121 self.priority ||= IssuePriority.default
122 self.watcher_user_ids = []
122 end
123 end
123 end
124 end
124
125
General Comments 0
You need to be logged in to leave comments. Login now