From 7332bfc7e598620edc2659ef50c0fd4673364234 Mon Sep 17 00:00:00 2001 From: Jethro Yu Date: Wed, 26 Aug 2015 17:32:33 +0800 Subject: Patch: show public projects in project quick-jump box --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 916bdf1..590ae2f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -334,7 +334,7 @@ module ApplicationHelper # Renders the project quick-jump box def render_project_jump_box return unless User.current.logged? - projects = User.current.memberships.collect(&:project).compact.select(&:active?).uniq + projects = User.current.memberships.collect(&:project).concat(Project.where(:is_public?)).compact.select(&:active?).uniq if projects.any? options = ("" + -- 2.5.0