mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-05 23:21:31 +00:00
Preload issue associations.
git-svn-id: http://svn.redmine.org/redmine/trunk@14240 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b64601888f
commit
e95542908a
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user