Filter list of recent projects in the project jump box
The attached patch makes sure that only currently visible projects are included in the project jump box, removing archived projects and projects the user is not allowed to view anymore.
The patch should apply cleanly on current trunk.
Only show currently visible projects in the project jump box (#34595).
Patch by Holger Just.
- Assignee deleted (
The patch lacks one dot after "visible". Here is an updated patch.
Index: lib/redmine/project_jump_box.rb =================================================================== --- lib/redmine/project_jump_box.rb (リビジョン 20737) +++ lib/redmine/project_jump_box.rb (作業コピー) @@ -31,6 +31,7 @@ def recently_used_projects project_ids = recently_used_project_ids Project.where(id: project_ids). + visible. index_by(&:id). values_at(*project_ids). # sort according to stored order compact