diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-18 06:51:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-18 06:51:59 +0000 |
commit | 93afc01e06abadd1330851d2ddf1122640144d2c (patch) | |
tree | 590879aaefb952cd00c0b01bba5a6db605336fa1 | |
parent | b58d01de11246d78cfa95bd3fe7053b1e223d147 (diff) | |
download | redmine-93afc01e06abadd1330851d2ddf1122640144d2c.tar.gz redmine-93afc01e06abadd1330851d2ddf1122640144d2c.zip |
Preload issue status when displaying activity.
git-svn-id: http://svn.redmine.org/redmine/trunk@15545 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 98e348d6a..9cf29532a 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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) |