diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-09 09:06:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-09 09:06:22 +0000 |
commit | e95542908a2ac81fe5ce6db901c901630466931a (patch) | |
tree | c39836dbe7a7719df81a85799e7a0c268181c306 /app/helpers/issues_helper.rb | |
parent | b64601888fcc57943c572704fc9d4304b7a341bf (diff) | |
download | redmine-e95542908a2ac81fe5ce6db901c901630466931a.tar.gz redmine-e95542908a2ac81fe5ce6db901c901630466931a.zip |
Preload issue associations.
git-svn-id: http://svn.redmine.org/redmine/trunk@14240 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index da870b429..62a65a66e 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -98,7 +98,7 @@ module IssuesHelper def render_descendants_tree(issue) s = '<form><table class="list issues">' - issue_list(issue.descendants.visible.sort_by(&:lft)) do |child, level| + issue_list(issue.descendants.visible.preload(:status, :priority, :tracker).sort_by(&:lft)) do |child, level| css = "issue issue-#{child.id} hascontextmenu" css << " idnt idnt-#{level}" if level > 0 s << content_tag('tr', |