From 95afa43ff1077f7563d9148cff024884f5937147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Tue, 10 Aug 2021 10:46:25 +0800 Subject: [PATCH] * Finish task #40887. --- module/task/model.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/task/model.php b/module/task/model.php index 2d493b3f58..1363d1684f 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -173,11 +173,11 @@ class taskModel extends model $childTaskID = $this->dao->lastInsertID(); $this->action->create('task', $childTaskID, 'Opened'); } - } - $this->computeWorkingHours($taskID); - $this->computeBeginAndEnd($taskID); - $this->dao->update(TABLE_TASK)->set('parent')->eq(-1)->where('id')->eq($taskID)->exec(); + $this->computeWorkingHours($taskID); + $this->computeBeginAndEnd($taskID); + $this->dao->update(TABLE_TASK)->set('parent')->eq(-1)->where('id')->eq($taskID)->exec(); + } } $this->file->updateObjectID($this->post->uid, $taskID, 'task'); if(!empty($taskFiles))