Make sure that projects_to_search is a Project Array.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9013 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3363e4f790
commit
65b4d8a649
|
@ -34,7 +34,7 @@ class SearchController < ApplicationController
|
|||
when 'my_projects'
|
||||
User.current.memberships.collect(&:project)
|
||||
when 'subprojects'
|
||||
@project ? (@project.self_and_descendants.active) : nil
|
||||
@project ? (@project.self_and_descendants.active.all) : nil
|
||||
else
|
||||
@project
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue