summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-08-30 21:05:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-08-30 21:05:22 +0000
commitefabbedebe80be51b5a05bed53de3eee7ce2e68b (patch)
tree35b0f6f3ce1cde553fc2a4dfd73a78cb59392214 /app/controllers
parentf435d1844d9eac7cbe3b374dbf4e422dca77eca1 (diff)
downloadredmine-efabbedebe80be51b5a05bed53de3eee7ce2e68b.tar.gz
redmine-efabbedebe80be51b5a05bed53de3eee7ce2e68b.zip
Enable filtering versions on Project -> Settings -> Versions (#22608).
git-svn-id: http://svn.redmine.org/redmine/trunk@15759 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 52243884f..ba7483c38 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -155,6 +155,10 @@ class ProjectsController < ApplicationController
@issue_category ||= IssueCategory.new
@member ||= @project.members.new
@trackers = Tracker.sorted.to_a
+
+ @version_status = params[:version_status] || 'open'
+ @version_name = params[:version_name]
+ @versions = @project.shared_versions.status(@version_status).like(@version_name)
@wiki ||= @project.wiki || Wiki.new(:project => @project)
end