diff options
author | Go MAEDA <maeda@farend.jp> | 2020-07-25 08:17:49 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-07-25 08:17:49 +0000 |
commit | e93febfda23b5fdc17d0bc1ad540b3ae926488c1 (patch) | |
tree | 3bd3d09096c903b6ab873add59f955f6ac1e2db9 /lib/redmine | |
parent | 8d469912facd9497322fc6e8eedc4cfa0dddb88c (diff) | |
download | redmine-e93febfda23b5fdc17d0bc1ad540b3ae926488c1.tar.gz redmine-e93febfda23b5fdc17d0bc1ad540b3ae926488c1.zip |
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
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |