From 051db182d8d8e113c19ab3b21b03a8104b4ca053 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 16 Nov 2018 13:23:19 +0800 Subject: [PATCH] * fix bug #2283. --- 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 a96d838727..f80d6c3189 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1643,8 +1643,8 @@ class taskModel extends model ->where('t1.deleted')->eq(0) ->beginIF($type == 'assignedTo')->andWhere('t1.status')->ne('closed')->fi() ->beginIF($type == 'finishedBy') - ->andWhere('t1.finishedby', 1)->eq($this->app->user->account) - ->orWhere('t1.finishedList')->like("%,{$this->app->user->account},%") + ->andWhere('t1.finishedby', 1)->eq($account) + ->orWhere('t1.finishedList')->like("%,{$account},%") ->markRight(1) ->fi() ->beginIF($type != 'all' and $type != 'finishedBy')->andWhere("t1.`$type`")->eq($account)->fi()