From 21d02478c0e147702772aee6bd3a6d9b4b33b434 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Wed, 13 Dec 2023 00:36:57 -0500 Subject: [PATCH] * Finish task #107882. --- module/testtask/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/testtask/model.php b/module/testtask/model.php index f448e04ade..70fee8a513 100755 --- a/module/testtask/model.php +++ b/module/testtask/model.php @@ -332,7 +332,9 @@ class testtaskModel extends model ->where('t1.deleted')->eq(0) ->andWhere('t4.deleted')->eq(0) ->andWhere('t1.auto')->ne('unit') - ->andWhere('t1.owner')->eq($account) + ->andWhere('(t1.owner')->eq($account) + ->orWhere("FIND_IN_SET('$account', t1.members)") + ->markRight(1) ->andWhere('t2.id')->in($this->app->user->view->sprints) ->beginIF($type == 'wait')->andWhere('t1.status')->ne('done')->fi() ->beginIF($type == 'done')->andWhere('t1.status')->eq('done')->fi()