]> source.dussan.org Git - redmine.git/commitdiff
Preload issue status when displaying activity.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 18 Jun 2016 06:51:59 +0000 (06:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 18 Jun 2016 06:51:59 +0000 (06:51 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15545 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 98e348d6af74e3bb478cddbf6984437b67cf8b2c..9cf29532a514dcd4b6dd627dd80e99b33ca93e81 100644 (file)
@@ -54,7 +54,7 @@ class Issue < ActiveRecord::Base
                 :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}},
                 :type => Proc.new {|o| 'issue' + (o.closed? ? ' closed' : '') }
 
-  acts_as_activity_provider :scope => preload(:project, :author, :tracker),
+  acts_as_activity_provider :scope => preload(:project, :author, :tracker, :status),
                             :author_key => :author_id
 
   DONE_RATIO_OPTIONS = %w(issue_field issue_status)