Vote #80750
完了Gantt bar is not displayed if the due date is the leftmost date or the start date is the rightmost date
0%
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
With the following patch, the Gantt bar is displayed if the due date is the first day of the Gantt or the start date is the last day of the Gantt.
<pre><code class="diff">
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 285eb66a0..e4663e08e 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -623,7 +623,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
</code></pre>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Setting the target version to 4.0.8.
--------------------------------------------------------------------------------
Committed the patch.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,33175,Starting or ending marker is not displayed if they are on the leftmost or rightmost boundary of the gantt