From 9f18426ca7b1e798ffd763382721660c674d2043 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 15 Dec 2010 21:26:51 +0000 Subject: [PATCH] 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 --- lib/redmine/helpers/gantt.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 754d31de..c7327cf0 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]