From fe8f6bb4dd0596881a216232fd4465d219f63ca7 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 18 Feb 2022 15:52:25 +0800 Subject: [PATCH] * Modify getUserSuspendTasks. --- 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 d347693c0f1..fcb6490ce0c 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -2267,7 +2267,7 @@ public function getUserSuspendedTasks($account) ->from(TABLE_TASK)->alias('t1') ->leftJoin(TABLE_EXECUTION)->alias('t2')->on("t1.execution = t2.id") ->leftJoin(TABLE_PROJECT)->alias('t3')->on("t1.project = t3.id") - ->where('t1.assignedTo')->eq($this->app->user->account) + ->where('t1.assignedTo')->eq($account) ->andWhere('(t2.status')->eq('suspended') ->orWhere('t3.status')->eq('suspended') ->markRight(1)