summaryrefslogtreecommitdiffstats
path: root/app/controllers/versions_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-24 18:45:40 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-24 18:45:40 +0000
commitaf0fcd22e40d19930e8c379f963df662f3a9a454 (patch)
treeadad83de28aea52021784527f92da6c596d5b361 /app/controllers/versions_controller.rb
parent858bd8dc40215486198aa73ab701a17262064b0b (diff)
downloadredmine-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.rb5
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?