1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-03 23:53:23 +00:00

Preload issue status when displaying activity.

git-svn-id: http://svn.redmine.org/redmine/trunk@15545 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-06-18 06:51:59 +00:00
parent b58d01de11
commit 93afc01e06

View 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)