* finish task #3664.

This commit is contained in:
wangyidong
2018-03-13 16:40:07 +08:00
parent d35e51a15a
commit c8393b9e08
3 changed files with 10 additions and 5 deletions
+1
View File
@@ -1084,6 +1084,7 @@ class task extends control
{
$story = $this->dao->select('story')->from(TABLE_TASK)->where('id')->eq($taskID)->fetch('story');
$this->task->delete(TABLE_TASK, $taskID);
$this->task->updateParentStatus($task->parent, 'done');
$this->task->computeWorkingHours($task->parent);
if($task->fromBug != 0) $this->dao->update(TABLE_BUG)->set('toTask')->eq(0)->where('id')->eq($task->fromBug)->exec();
if($story) $this->loadModel('story')->setStage($story);