From 70bd44395d0317672626887a1c4188b80cd107dd Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 3 Jan 2024 12:14:04 +0000 Subject: [PATCH] Optimize gantt chart rendering for issues without subtasks (#40000). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22589 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 a7b0d715d..a5c6e4b9f 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -765,7 +765,7 @@ module Redmine tag_options[:id] = "issue-#{object.id}" tag_options[:class] = "issue-subject hascontextmenu" tag_options[:title] = object.subject - children = object.children & project_issues(object.project) + children = object.leaf? ? [] : object.children & project_issues(object.project) has_children = children.present? && (children.collect(&:fixed_version).uniq & [object.fixed_version]).present? -- 2.39.5