@@ -223,8 +223,7 module ApplicationHelper | |||
|
223 | 223 | |
|
224 | 224 | # Renders the project quick-jump box |
|
225 | 225 | def render_project_jump_box |
|
226 | # Retrieve them now to avoid a COUNT query | |
|
227 | projects = User.current.projects.all | |
|
226 | projects = User.current.memberships.collect(&:project).compact.uniq | |
|
228 | 227 | if projects.any? |
|
229 | 228 | s = '<select onchange="if (this.value != \'\') { window.location = this.value; }">' + |
|
230 | 229 | "<option value=''>#{ l(:label_jump_to_a_project) }</option>" + |
General Comments 0
You need to be logged in to leave comments.
Login now