]> source.dussan.org Git - redmine.git/commitdiff
Gantt progress line misrendering for 0% progress issues/versions with future start...
authorGo MAEDA <maeda@farend.jp>
Mon, 23 Sep 2024 01:33:40 +0000 (01:33 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 23 Sep 2024 01:33:40 +0000 (01:33 +0000)
Contributed by Minoru Maeda (user:maeda-m).

git-svn-id: https://svn.redmine.org/redmine/trunk@23068 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/helpers/gantt.rb

index c2fc285a79dc3861e502246400b9975b1d6f4ef9..a365dccb8aff91867196f885222920c35f386856 100644 (file)
@@ -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.sprite_icon('issue').html_safe
@@ -744,7 +744,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 = (+"").html_safe
           s << view.sprite_icon('package').html_safe