* Fix Bug#1386

This commit is contained in:
滔哥
2018-01-15 14:58:11 +08:00
parent bb156560a9
commit 53ed09473e
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ td.delayed{background: #e84e0f!important; color: white;}
?>
<tr data-url='<?php echo empty($sso) ? $viewLink : $sso . $sign . 'referer=' . base64_encode($viewLink); ?>' <?php echo $appid?>>
<td class='text-center'><?php echo $task->id;?></td>
<td class='text-center'><?php echo zget(array_keys($lang->task->priList), $task->pri, $task->pri)?></td>
<td class='text-center'><?php echo zget($lang->task->priList, $task->pri, $task->pri)?></td>
<td style='color: <?php echo $task->color?>' title='<?php echo $task->name?>'><?php echo $task->name?></td>
<td class='text-center'><?php echo $task->estimate?></td>
<td class='<?php if(isset($task->delay)) echo 'delayed';?>'><?php if(substr($task->deadline, 0, 4) > 0) echo $task->deadline;?></td>
+2 -2
View File
@@ -55,7 +55,7 @@
$groupWait = 0;
$groupDone = 0;
$groupDoing = 0;
$groupClosed = 0;
$groupClosed = 0;
$groupEstimate = 0.0;
$groupConsumed = 0.0;
$groupLeft = 0.0;
@@ -113,7 +113,7 @@
</td>
<?php endif;?>
<td><?php echo $task->id;?></td>
<td><span class='<?php echo 'pri' . zget(array_keys($lang->task->priList), $task->pri, $task->pri)?>'><?php echo zget(array_keys($lang->task->priList), $task->pri, $task->pri);?></span></td>
<td><span class='<?php echo 'pri' . zget($lang->task->priList, $task->pri, $task->pri)?>'><?php echo zget($lang->task->priList, $task->pri, $task->pri);?></span></td>
<td class='text-left'>
<?php
if(!empty($task->team)) echo '<span class="label">' . $lang->task->multipleAB . '</span> ';
+6 -5
View File
@@ -672,6 +672,7 @@ class taskModel extends model
$task->status = 'done';
$task->finishedBy = $oldTask->openedBy; // Fix bug#1341
$task->finishedDate = helper::now();
$task->assignedTo = $oldTask->openedBy; // Fix bug#1341
}
else
{
@@ -741,7 +742,7 @@ class taskModel extends model
*
* @param int $taskID
* @access public
* @return void
* @return array
*/
public function recordEstimate($taskID)
{
@@ -2264,8 +2265,8 @@ class taskModel extends model
/**
* Get mail subject.
*
* @param object $task
*
* @param object $task
* @access public
* @return string
*/
@@ -2277,8 +2278,8 @@ class taskModel extends model
/**
* Get toList and ccList.
*
* @param object $task
*
* @param object $task
* @access public
* @return bool|array
*/