]> source.dussan.org Git - redmine.git/commitdiff
Merged r14239 and r14240 (#19706).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2015 07:22:19 +0000 (07:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2015 07:22:19 +0000 (07:22 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14250 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb
app/helpers/issues_helper.rb

index 8bc326eaab55ba530baedcbc904a60ecf5f02c71..4525aa390a089bcd90ade89b43582336467d0ca6 100644 (file)
@@ -103,7 +103,7 @@ class IssuesController < ApplicationController
     @journals.select! {|journal| journal.notes? || journal.visible_details.any?}
     @journals.reverse! if User.current.wants_comments_in_reverse_order?
 
-    @changesets = @issue.changesets.visible.to_a
+    @changesets = @issue.changesets.visible.preload(:repository, :user).to_a
     @changesets.reverse! if User.current.wants_comments_in_reverse_order?
 
     @relations = @issue.relations.select {|r| r.other_issue(@issue) && r.other_issue(@issue).visible? }
index 8e951596cc105bddfb95fa63fdc5129ca82e22a1..853051e2d9bc8a2034f4047b1c12490f2ea8587f 100644 (file)
@@ -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',