From 2151d494dfa1377cc930d976a70cea17ac895554 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 5 Jun 2023 14:20:09 +0800 Subject: [PATCH] * Modify var name. --- module/task/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/task/model.php b/module/task/model.php index d41fcf17f3..ce29c2f295 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -1852,8 +1852,8 @@ class taskModel extends model { $newTeamInfo = new stdclass(); $newTeamInfo->consumed = $currentTeam->consumed + $effort->consumed - $oldEffort->consumed; - if($currentTeam->status != 'done') $newTeamInfo->left = $left; - if($currentTeam->status != 'done' and $newTeamInfo->consumed > 0 and $left == 0) $newTeamInfo->status = 'done'; + if($currentTeam->status != 'done') $newTeamInfo->left = $data->left; + if($currentTeam->status != 'done' and $newTeamInfo->consumed > 0 and $data->left == 0) $newTeamInfo->status = 'done'; $this->dao->update(TABLE_TASKTEAM)->data($newTeamInfo)->where('id')->eq($currentTeam->id)->exec(); $data = $this->computeMultipleHours($task, $data);