* Update children task when close parent task.

This commit is contained in:
daitingting
2018-03-15 11:02:23 +08:00
parent 04678c4c4b
commit ccc8cbf47c
+1 -1
View File
@@ -1066,7 +1066,7 @@ class taskModel extends model
$this->updateParentStatus($oldTask->parent, 'closed');
$this->computeWorkingHours($oldTask->parent);
$this->dao->update(TABLE_TASK)->set('status')->eq('closed')->where('parent')->eq($taskID)->exec();
$this->dao->update(TABLE_TASK)->data($task)->autoCheck()->where('parent')->eq($taskID)->exec();
if($oldTask->story) $this->loadModel('story')->setStage($oldTask->story);