]> source.dussan.org Git - redmine.git/commitdiff
Eager load priorities on roadmap and changelog.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Nov 2009 15:42:44 +0000 (15:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Nov 2009 15:42:44 +0000 (15:42 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3066 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/changelog.rhtml
app/views/projects/roadmap.rhtml
app/views/versions/show.rhtml

index 355a3034a68942ad008530f850e367e965d19b2a..9fe1069d3d8ace17af4aaf34d48124b411f3295a 100644 (file)
@@ -11,7 +11,7 @@
     <% end %>
     <p><%=h version.description %></p>
     <% issues = version.fixed_issues.find(:all,
-                                 :include => [:status, :tracker],
+                                 :include => [:status, :tracker, :priority],
                                  :conditions => ["#{IssueStatus.table_name}.is_closed=? AND #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')})", true],
                                  :order => "#{Tracker.table_name}.position") unless @selected_tracker_ids.empty?
        issues ||= []
index cbad932df6d09a44d9aa8cdf6ff96c20fb3e7253..00d4a215c5cf52afee646e8a175256c6c0a5a0fc 100644 (file)
@@ -11,7 +11,7 @@
     <%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
 
     <% issues = version.fixed_issues.find(:all,
-                                          :include => [:status, :tracker],
+                                          :include => [:status, :tracker, :priority],
                                           :conditions => ["tracker_id in (#{@selected_tracker_ids.join(',')})"],
                                           :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") unless @selected_tracker_ids.empty?
        issues ||= []
index 5cea1abcb745bd595d2465475f9fcddb43bb492c..18bc6bc45be1825eb2d1abac90d333c70ca398f8 100644 (file)
@@ -33,7 +33,7 @@
 <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
 
 <% issues = @version.fixed_issues.find(:all,
-                                       :include => [:status, :tracker],
+                                       :include => [:status, :tracker, :priority],
                                        :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %>
 <% if issues.size > 0 %>
 <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>