summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-02-04 04:32:29 +0000
committerGo MAEDA <maeda@farend.jp>2021-02-04 04:32:29 +0000
commit56236f51ff2e72582046f9a3d3614c56e34124a5 (patch)
tree5311a9900439e3f73072bd72bbb6302ede9c0bf0 /lib
parent75b6cacb5d001bb7a4dd24904e47e1deef1ab847 (diff)
downloadredmine-56236f51ff2e72582046f9a3d3614c56e34124a5.tar.gz
redmine-56236f51ff2e72582046f9a3d3614c56e34124a5.zip
Only show currently visible projects in the project jump box (#34595).
Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@20735 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/project_jump_box.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/project_jump_box.rb b/lib/redmine/project_jump_box.rb
index b8f332008..da5d93644 100644
--- a/lib/redmine/project_jump_box.rb
+++ b/lib/redmine/project_jump_box.rb
@@ -30,7 +30,7 @@ module Redmine
def recently_used_projects
project_ids = recently_used_project_ids
- Project.where(id: project_ids).
+ Project.where(id: project_ids).visible
index_by(&:id).
values_at(*project_ids). # sort according to stored order
compact