From 65b4d8a649d7c9aac6a34502017239799ac7e7b7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 26 Feb 2012 11:42:29 +0000 Subject: [PATCH] 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 --- app/controllers/search_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 3c8258dbf..4d4e69d27 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -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