* Finish task #93598.

This commit is contained in:
hufangzhou
2023-05-22 14:43:16 +08:00
parent 9ac62eee64
commit 43aba864b4
+1 -1
View File
@@ -130,7 +130,7 @@
</td>
<?php
/* Remove LONG_TIME item when no multiple project. */
if(empty($project->multiple)) unset($lang->project->endList[999]);
if(empty($project->multiple) && $project->end != LONG_TIME) unset($lang->project->endList[999]);
$deltaValue = $project->end == LONG_TIME ? 999 : (strtotime($project->end) - strtotime($project->begin)) / 3600 / 24 + 1;
?>
<td id="endList" colspan='2'><?php echo html::radio('delta', $lang->project->endList, $deltaValue, "onclick='computeEndDate(this.value)'");?></td>