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()