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');?>