summaryrefslogtreecommitdiffstats
path: root/app/views/versions/show.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/versions/show.rhtml')
-rw-r--r--app/views/versions/show.rhtml7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/views/versions/show.rhtml b/app/views/versions/show.rhtml
index 18bc6bc45..79de5984b 100644
--- a/app/views/versions/show.rhtml
+++ b/app/views/versions/show.rhtml
@@ -32,13 +32,10 @@
<%= render :partial => 'versions/overview', :locals => {:version => @version} %>
<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
-<% issues = @version.fixed_issues.find(:all,
- :include => [:status, :tracker, :priority],
- :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %>
-<% if issues.size > 0 %>
+<% if @issues.present? %>
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
<ul>
-<% issues.each do |issue| -%>
+<% @issues.each do |issue| -%>
<li><%= link_to_issue(issue) %></li>
<% end -%>
</ul>