プロジェクト

全般

プロフィール

Vote #80750

完了

Gantt bar is not displayed if the due date is the leftmost date or the start date is the rightmost date

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Gantt_34
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
34
version_id:
161
issue_org_id:
33140
author_id:
58883
assigned_to_id:
332
comments:
9
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
157
ステータス-->[Closed]

説明

If the start date and due date are 1st of the month, this will not be displayed.


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

Admin Redmine さんが4年以上前に更新

  • カテゴリGantt_34 にセット
  • 対象バージョン4.0.8_161 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0