* code for task #8279.

This commit is contained in:
z
2020-11-04 10:33:20 +08:00
parent 4ebb150e82
commit eb53d44b81
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1283,7 +1283,7 @@ class taskModel extends model
/* Record consumed and left. */
$estimate = new stdclass();
$estimate->date = zget($task, 'realStarted', date(DT_DATE1));
$estimate->date = zget($task, 'realStarted', $now);
$estimate->task = $taskID;
$estimate->consumed = zget($_POST, 'consumed', 0);
$estimate->left = zget($_POST, 'left', 0);
+1 -1
View File
@@ -67,7 +67,7 @@
</tr>
<tr>
<th><?php echo $lang->task->finishedDate;?></th>
<td><div class='datepicker-wrapper'><?php echo html::input('finishedDate', helper::today(), "class='form-control form-date'");?></div></td><td></td>
<td><div class='datepicker-wrapper'><?php echo html::input('finishedDate', helper::now(), "class='form-control form-datetime'");?></div></td><td></td>
</tr>
<tr class='hide'>
<th><?php echo $lang->task->status;?></th>
+1 -1
View File
@@ -48,7 +48,7 @@
</tr>
<tr>
<th class='w-90px'><?php echo $lang->task->realStarted;?></th>
<td class='w-p25-f'><div class='datepicker-wrapper datepicker-date'><?php echo html::input('realStarted', $task->realStarted == '0000-00-00' ? helper::today() : $task->realStarted, "class='form-control form-date' data-picker-position='bottom-right'");?></div></td>
<td class='w-p25-f'><div class='datepicker-wrapper datepicker-date'><?php echo html::input('realStarted', $task->realStarted == '0000-00-00 00:00:00' ? helper::now() : $task->realStarted, "class='form-control form-datetime' data-picker-position='bottom-right'");?></div></td>
<td></td>
</tr>
<tr>