From a986454abd01568c58a58cb57768ee7d4e9fd9ac Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Wed, 27 Jan 2021 15:13:04 +0800 Subject: [PATCH] * Fix bug#3769. --- module/program/view/pgmedit.html.php | 2 +- module/program/view/prjedit.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/program/view/pgmedit.html.php b/module/program/view/pgmedit.html.php index 196b3f9cee..c0130dd4ae 100644 --- a/module/program/view/pgmedit.html.php +++ b/module/program/view/pgmedit.html.php @@ -74,7 +74,7 @@ ?> - end == LONG_TIME ? 999 : '';?> + end == LONG_TIME ? 999 : (strtotime($program->end) - strtotime($program->begin)) / 3600 / 24 + 1;?> program->endList , $endValue, "onclick='computeEndDate(this.value)'");?> diff --git a/module/program/view/prjedit.html.php b/module/program/view/prjedit.html.php index cdfbf5d1a1..0083dc241b 100644 --- a/module/program/view/prjedit.html.php +++ b/module/program/view/prjedit.html.php @@ -79,7 +79,7 @@ ?> - end == LONG_TIME ? 999 : '';?> + end == LONG_TIME ? 999 : (strtotime($project->end) - strtotime($project->begin)) / 3600 / 24 + 1;?> program->endList , $deltaValue, "onclick='computeEndDate(this.value)'");?> model == 'scrum'):?>