summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-15 21:26:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-15 21:26:51 +0000
commit9f18426ca7b1e798ffd763382721660c674d2043 (patch)
treedd5f1441d827fde2a45ba2b95c0fd11d1f2e279e /lib
parent252dcad3f618bbadb8be6e5fd0c87e5f0c50c008 (diff)
downloadredmine-9f18426ca7b1e798ffd763382721660c674d2043.tar.gz
redmine-9f18426ca7b1e798ffd763382721660c674d2043.zip
Skip a few SQL queries for cross project gantt.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4515 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 754d31de6..c7327cf01 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -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]