From e93febfda23b5fdc17d0bc1ad540b3ae926488c1 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 25 Jul 2020 08:17:49 +0000 Subject: Gantt bar is not displayed if the due date is the leftmost date or the start date is the rightmost date (#33140). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19935 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/redmine') diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 4ea779d16..7aba9b7e2 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -614,7 +614,7 @@ module Redmine def coordinates(start_date, end_date, progress, zoom=nil) zoom ||= @zoom coords = {} - if start_date && end_date && start_date < self.date_to && end_date > self.date_from + if start_date && end_date && start_date <= self.date_to && end_date >= self.date_from if start_date > self.date_from coords[:start] = start_date - self.date_from coords[:bar_start] = start_date - self.date_from -- cgit v1.2.3