]> source.dussan.org Git - redmine.git/commitdiff
Skip a count query.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 14 Apr 2011 16:29:51 +0000 (16:29 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 14 Apr 2011 16:29:51 +0000 (16:29 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5457 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 9410e8dcfbc1944ce5df87a8767c2655e8d4b92c..ffcd755d13cfa5a561752b182a3a17402bf51ebf 100644 (file)
@@ -389,7 +389,7 @@ module ApplicationHelper
       h(Setting.app_title)
     else
       b = []
-      ancestors = (@project.root? ? [] : @project.ancestors.visible)
+      ancestors = (@project.root? ? [] : @project.ancestors.visible.all)
       if ancestors.any?
         root = ancestors.shift
         b << link_to_project(root, {:jump => current_menu_item}, :class => 'root')