From 174d226f86e96dadf953c9ce3d16f998f1d81cb2 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 26 Jul 2022 14:53:15 +0800 Subject: [PATCH] * Fix bug #62026. --- module/task/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/model.php b/module/task/model.php index 6f8d4795ac..dca249864d 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1673,7 +1673,7 @@ class taskModel extends model $estimate->left = zget($_POST, 'left', 0); $estimate->work = zget($task, 'work', ''); $estimate->account = $this->app->user->account; - $estimate->consumed = $estimate->consumed - $oldTask->consumed; + $estimate->consumed = !empty($oldTask->team) ? $estimate->consumed - $oldTask->team[$this->app->user->account]->consumed : $estimate->consumed - $oldTask->consumed; if($this->post->comment) $estimate->work = $this->post->comment; $this->addTaskEstimate($estimate);