Commit e859855b authored by jplang's avatar jplang
Browse files

Preload issue associations.

git-svn-id: https://svn.redmine.org/redmine/trunk@14240 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1435537c
...@@ -98,7 +98,7 @@ module IssuesHelper ...@@ -98,7 +98,7 @@ module IssuesHelper
def render_descendants_tree(issue) def render_descendants_tree(issue)
s = '<form><table class="list issues">' 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 = "issue issue-#{child.id} hascontextmenu"
css << " idnt idnt-#{level}" if level > 0 css << " idnt idnt-#{level}" if level > 0
s << content_tag('tr', s << content_tag('tr',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment