Vote #80765
完了Starting or ending marker is not displayed if they are on the leftmost or rightmost boundary of the gantt
0%
説明
If the start date is the first day of the Gantt or the due date is the last day of the Gantt, the mark of the Gantt bar is not displayed.
|.expect|.actual|
|!{width:600px;border:1px solid #ccc;}expect.png!|!{width:600px;border:1px solid #ccc;}actual.png!|
journals
Resolve with the following patch.
<pre><code class="diff">
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 285eb66a0..ad9bab8ad 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -624,13 +624,13 @@ module Redmine
zoom ||= @zoom
coords = {}
if start_date && end_date && start_date < self.date_to && end_date > self.date_from
- if start_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
else
coords[:bar_start] = 0
end
- if end_date < self.date_to
+ if end_date <= self.date_to
coords[:end] = end_date - self.date_from
coords[:bar_end] = end_date - self.date_from + 1
else
</code></pre>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Updated the patch for the latest trunk.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Setting the target version to 4.0.8.
--------------------------------------------------------------------------------
Committed the patch. Thank you for your contribution.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,33140,Gantt bar is not displayed if the due date is the leftmost date or the start date is the rightmost date