summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-02 11:46:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-02 11:46:20 +0000
commitafbd83d4046a2274f88417f2b9b8c1a22a88fd9f (patch)
tree14a308aa5a976e8fef74f59a7a2d56e756e1a49f /app
parent8cd93159d68c5a94d0e625c6304fe96eb909e9c5 (diff)
downloadredmine-afbd83d4046a2274f88417f2b9b8c1a22a88fd9f.tar.gz
redmine-afbd83d4046a2274f88417f2b9b8c1a22a88fd9f.zip
Skip a count(*) SQL query.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5294 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index f80cbbf26..ea2ddd132 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -143,7 +143,7 @@ class ProjectsController < ApplicationController
end
@users_by_role = @project.users_by_role
- @subprojects = @project.children.visible
+ @subprojects = @project.children.visible.all
@news = @project.news.find(:all, :limit => 5, :include => [ :author, :project ], :order => "#{News.table_name}.created_on DESC")
@trackers = @project.rolled_up_trackers