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:
Jean-Philippe Lang 2012-02-26 11:42:29 +00:00
parent 3363e4f790
commit 65b4d8a649
1 changed files with 1 additions and 1 deletions

View File

@ -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