diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-07-25 09:34:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-07-25 09:34:13 +0000 |
commit | a84920ca70169b825bda4ff250859e176a8c4f45 (patch) | |
tree | 63db0217e4402ab968bb4fad81c312ca186d7515 | |
parent | 21d2de48b7d52e292cb75ca6e4e2b584d3c7edb4 (diff) | |
download | redmine-0.9-stable.tar.gz redmine-0.9-stable.zip |
Merged r3865 and r3866 from trunk.0.9-stable
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3868 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/versions_controller.rb | 3 | ||||
-rw-r--r-- | app/views/versions/show.rhtml | 7 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index d11541ec7..028626e35 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -25,6 +25,9 @@ class VersionsController < ApplicationController helper :projects def show + @issues = @version.fixed_issues.visible.find(:all, + :include => [:status, :tracker, :priority], + :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") end def edit 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> |