From 17ee3c0980e27f3a44432ba06526fee76264622a Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 15 Nov 2021 09:55:18 +0800 Subject: [PATCH] * Fix bug #16248. --- module/productplan/view/edit.html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/productplan/view/edit.html.php b/module/productplan/view/edit.html.php index c1814da079..67c25b8426 100644 --- a/module/productplan/view/edit.html.php +++ b/module/productplan/view/edit.html.php @@ -51,7 +51,8 @@ productplan->end;?> end != '2030-01-01' ? formatTime($plan->end) : '', 'class="form-control form-date"');?> - productplan->endList , '', "onclick='computeEndDate(this.value)'");?> + end == '2030-01-01' ? 0 : (strtotime($plan->end) - strtotime($plan->begin)) / 3600 / 24 + 1;?> + productplan->endList , $deltaValue, "onclick='computeEndDate(this.value)'");?> printExtendFields($plan, 'table', 'columns=3');?>