mirror of
https://github.com/redmine/redmine.git
synced 2026-03-06 04:21:23 +01:00
Use projects association.
git-svn-id: http://svn.redmine.org/redmine/trunk@13744 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -29,7 +29,7 @@ class SearchController < ApplicationController
|
||||
when 'all'
|
||||
nil
|
||||
when 'my_projects'
|
||||
User.current.memberships.collect(&:project)
|
||||
User.current.projects
|
||||
when 'subprojects'
|
||||
@project ? (@project.self_and_descendants.active.to_a) : nil
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user