summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-10 18:33:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-10 18:33:36 +0000
commit2734eaffd823986c0da99ee4162000054571f422 (patch)
treee6fcd3d31fa3851a1196945a9dd473d041487923 /app/controllers
parentf1a42f21a6e6f7931973df3344525e222c9c7cc9 (diff)
downloadredmine-2734eaffd823986c0da99ee4162000054571f422.tar.gz
redmine-2734eaffd823986c0da99ee4162000054571f422.zip
Adds a link to all projects in the jump drop down (#23310).
git-svn-id: http://svn.redmine.org/redmine/trunk@16172 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 9284b8d09..99a39af3b 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -36,6 +36,11 @@ class ProjectsController < ApplicationController
# Lists visible projects
def index
+ # try to redirect to the requested menu item
+ if params[:jump] && redirect_to_menu_item(params[:jump])
+ return
+ end
+
scope = Project.visible.sorted
respond_to do |format|