diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-24 18:45:40 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-24 18:45:40 +0000 |
commit | af0fcd22e40d19930e8c379f963df662f3a9a454 (patch) | |
tree | adad83de28aea52021784527f92da6c596d5b361 /app/controllers/versions_controller.rb | |
parent | 858bd8dc40215486198aa73ab701a17262064b0b (diff) | |
download | redmine-af0fcd22e40d19930e8c379f963df662f3a9a454.tar.gz redmine-af0fcd22e40d19930e8c379f963df662f3a9a454.zip |
Provide a direct access to completed versions form the roadmap.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8699 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/versions_controller.rb')
-rw-r--r-- | app/controllers/versions_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index 3aac97943..54cd9d7c2 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -39,7 +39,10 @@ class VersionsController < ApplicationController @versions = @project.shared_versions || [] @versions += @project.rolled_up_versions.visible if @with_subprojects @versions = @versions.uniq.sort - @versions.reject! {|version| version.closed? || version.completed? } unless params[:completed] + unless params[:completed] + @completed_versions = @versions.select {|version| version.closed? || version.completed? } + @versions -= @completed_versions + end @issues_by_version = {} unless @selected_tracker_ids.empty? |