@@ -27,6 +27,9 class VersionsController < ApplicationController | |||
|
27 | 27 | helper :projects |
|
28 | 28 | |
|
29 | 29 | def show |
|
30 | @issues = @version.fixed_issues.find(:all, | |
|
31 | :include => [:status, :tracker, :priority], | |
|
32 | :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") | |
|
30 | 33 | end |
|
31 | 34 | |
|
32 | 35 | def new |
@@ -32,13 +32,10 | |||
|
32 | 32 | <%= render :partial => 'versions/overview', :locals => {:version => @version} %> |
|
33 | 33 | <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %> |
|
34 | 34 | |
|
35 | <% issues = @version.fixed_issues.find(:all, | |
|
36 | :include => [:status, :tracker, :priority], | |
|
37 | :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %> | |
|
38 | <% if issues.size > 0 %> | |
|
35 | <% if @issues.present? %> | |
|
39 | 36 | <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend> |
|
40 | 37 | <ul> |
|
41 | <% issues.each do |issue| -%> | |
|
38 | <% @issues.each do |issue| -%> | |
|
42 | 39 | <li><%= link_to_issue(issue) %></li> |
|
43 | 40 | <% end -%> |
|
44 | 41 | </ul> |
General Comments 0
You need to be logged in to leave comments.
Login now