]> source.dussan.org Git - redmine.git/commitdiff
Skip a few SQL queries for cross project gantt.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 15 Dec 2010 21:26:51 +0000 (21:26 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 15 Dec 2010 21:26:51 +0000 (21:26 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4515 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/helpers/gantt.rb

index 754d31de61b0f84ac26d94fa5d53edd88c9e7856..c7327cf01bb321e02f5ab7b3608b70f7b1d8d9af 100644 (file)
@@ -206,7 +206,7 @@ module Redmine
         project.children.visible.has_module('issue_tracking').each do |project|
           render_project(project, options)
           return if abort?
-        end
+        end unless project.leaf?
 
         # Remove indent to hit the next sibling
         options[:indent] -= options[:indent_increment]