From 4dbbc8fada07965fd15dd960bd1aee6113679d32 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 24 Sep 2024 01:33:02 +0000 Subject: Merged r23068 from trunk to 5.0-stable (#41263). git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@23073 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 9a18263c0..133f827c1 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -723,7 +723,7 @@ module Redmine progress_date = calc_progress_date(issue.start_date, issue.due_before, issue.done_ratio) css_classes << ' behind-start-date' if progress_date < self.date_from - css_classes << ' over-end-date' if progress_date > self.date_to + css_classes << ' over-end-date' if progress_date > self.date_to && issue.done_ratio > 0 end s = (+"").html_safe s << view.assignee_avatar(issue.assigned_to, :size => 13, :class => 'icon-gravatar') @@ -743,7 +743,7 @@ module Redmine progress_date = calc_progress_date(version.start_date, version.due_date, version.visible_fixed_issues.completed_percent) html_class << ' behind-start-date' if progress_date < self.date_from - html_class << ' over-end-date' if progress_date > self.date_to + html_class << ' over-end-date' if progress_date > self.date_to && version.visible_fixed_issues.completed_percent > 0 end s = view.link_to_version(version).html_safe view.content_tag(:span, s, :class => html_class).html_safe -- cgit v1.2.3