diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 914efd2..35c8a40 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -223,8 +223,7 @@ module ApplicationHelper # Renders the project quick-jump box def render_project_jump_box - # Retrieve them now to avoid a COUNT query - projects = User.current.projects.all + projects = User.current.memberships.collect(&:project).compact.uniq if projects.any? s = '