* Modify var name.

This commit is contained in:
sunguangming
2023-06-05 14:20:09 +08:00
parent 8b650b8309
commit 2151d494df
+2 -2
View File
@@ -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);