]> source.dussan.org Git - redmine.git/commitdiff
Make sure that projects_to_search is a Project Array.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 26 Feb 2012 11:42:29 +0000 (11:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 26 Feb 2012 11:42:29 +0000 (11:42 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9013 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/search_controller.rb

index 3c8258dbfbee17d3271251c5558a764dd3d6a35c..4d4e69d2727c0969f4c7e6611f0ae3497b0a442e 100644 (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