1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-18 09:32:02 +00:00

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
This commit is contained in:
Go MAEDA 2024-01-03 12:14:04 +00:00
parent fe9fd97f6d
commit 70bd44395d

View File

@ -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?