From 8664f7415408b8480a4be067d5f40bbc83c6e541 Mon Sep 17 00:00:00 2001 From: Lucas Marcouiller Date: Sat, 29 Nov 2025 21:55:45 +0100 Subject: [PATCH 1/3] Fix #36475 bad value for project gantt start --- htdocs/projet/ganttchart.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/ganttchart.inc.php b/htdocs/projet/ganttchart.inc.php index c2a68c65d7c..91f6a5ce082 100644 --- a/htdocs/projet/ganttchart.inc.php +++ b/htdocs/projet/ganttchart.inc.php @@ -140,8 +140,8 @@ if (g.getDivId() != null) 'task_alternate_id' => (int) -$t['task_project_id'], 'task_name' => $projecttmp->ref.' '.$projecttmp->title, 'task_resources' => '', - 'task_start_date' => 0, - 'task_end_date' => 0, + 'task_start_date' => $projecttmp->date_start, + 'task_end_date' => $projecttmp->date_end, 'task_is_group' => 1, 'task_position' => 0, 'task_css' => 'ggroupblack', 'task_milestone' => 0, 'task_parent' => 0, 'task_parent_alternate_id' => 0, 'note' => '', 'task_planned_workload' => 0 From 792070b5f5d9d7ea823f0184d86c89f7a30a477a Mon Sep 17 00:00:00 2001 From: Lucas Marcouiller Date: Tue, 2 Dec 2025 08:34:41 +0100 Subject: [PATCH 2/3] fix a potential warning --- htdocs/projet/ganttchart.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/ganttchart.inc.php b/htdocs/projet/ganttchart.inc.php index 91f6a5ce082..598ab6572ff 100644 --- a/htdocs/projet/ganttchart.inc.php +++ b/htdocs/projet/ganttchart.inc.php @@ -141,7 +141,7 @@ if (g.getDivId() != null) 'task_name' => $projecttmp->ref.' '.$projecttmp->title, 'task_resources' => '', 'task_start_date' => $projecttmp->date_start, - 'task_end_date' => $projecttmp->date_end, + 'task_end_date' => !empty($projecttmp->date_end) ? $projecttmp->date_end : 0, 'task_is_group' => 1, 'task_position' => 0, 'task_css' => 'ggroupblack', 'task_milestone' => 0, 'task_parent' => 0, 'task_parent_alternate_id' => 0, 'note' => '', 'task_planned_workload' => 0 From 55977d16f1a9585f1452303b1e88de5f65283e81 Mon Sep 17 00:00:00 2001 From: Lucas Marcouiller Date: Tue, 2 Dec 2025 08:35:53 +0100 Subject: [PATCH 3/3] fix warning --- htdocs/projet/ganttchart.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/ganttchart.inc.php b/htdocs/projet/ganttchart.inc.php index 598ab6572ff..f23d99ec95e 100644 --- a/htdocs/projet/ganttchart.inc.php +++ b/htdocs/projet/ganttchart.inc.php @@ -141,7 +141,7 @@ if (g.getDivId() != null) 'task_name' => $projecttmp->ref.' '.$projecttmp->title, 'task_resources' => '', 'task_start_date' => $projecttmp->date_start, - 'task_end_date' => !empty($projecttmp->date_end) ? $projecttmp->date_end : 0, + 'task_end_date' => (!empty($projecttmp->date_end) ? $projecttmp->date_end : 0), 'task_is_group' => 1, 'task_position' => 0, 'task_css' => 'ggroupblack', 'task_milestone' => 0, 'task_parent' => 0, 'task_parent_alternate_id' => 0, 'note' => '', 'task_planned_workload' => 0