* fix bug#407.

This commit is contained in:
chencongzhi520@gmail.com
2013-05-04 01:01:42 +00:00
parent 23c572cab7
commit 82a29b1a57

View File

@@ -278,9 +278,9 @@ class taskModel extends model
case 'done':
{
$task->left = 0;
if(!$task->finishedBy) $task->finishedBy = $this->app->user->account;
if(!$task->finishedDate) $task->finishedDate = $now;
if($task->closedReason) $task->closedDate = $now;
if(!$task->finishedBy) $task->finishedBy = $this->app->user->account;
if($task->closedReason) $task->closedDate = $now;
$task->finishedDate = $oldTask->status == 'done' ? $oldTask->finishedDate : $now;
}
break;
case 'cancel':