Eager load priorities on roadmap and changelog.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3066 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bccf6496f8
commit
c309210654
|
@ -11,7 +11,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<p><%=h version.description %></p>
|
<p><%=h version.description %></p>
|
||||||
<% issues = version.fixed_issues.find(:all,
|
<% 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],
|
: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?
|
:order => "#{Tracker.table_name}.position") unless @selected_tracker_ids.empty?
|
||||||
issues ||= []
|
issues ||= []
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
|
<%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
|
||||||
|
|
||||||
<% issues = version.fixed_issues.find(:all,
|
<% issues = version.fixed_issues.find(:all,
|
||||||
:include => [:status, :tracker],
|
:include => [:status, :tracker, :priority],
|
||||||
:conditions => ["tracker_id in (#{@selected_tracker_ids.join(',')})"],
|
:conditions => ["tracker_id in (#{@selected_tracker_ids.join(',')})"],
|
||||||
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") unless @selected_tracker_ids.empty?
|
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") unless @selected_tracker_ids.empty?
|
||||||
issues ||= []
|
issues ||= []
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
|
<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
|
||||||
|
|
||||||
<% issues = @version.fixed_issues.find(:all,
|
<% issues = @version.fixed_issues.find(:all,
|
||||||
:include => [:status, :tracker],
|
:include => [:status, :tracker, :priority],
|
||||||
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %>
|
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %>
|
||||||
<% if issues.size > 0 %>
|
<% if issues.size > 0 %>
|
||||||
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
|
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
|
||||||
|
|
Loading…
Reference in New Issue