diff --git a/module/testsuite/control.php b/module/testsuite/control.php index 0c783ee535..91739e1c81 100644 --- a/module/testsuite/control.php +++ b/module/testsuite/control.php @@ -75,7 +75,7 @@ class testsuite extends control $sort = common::appendOrder($orderBy); $productName = isset($this->products[$productID]) ? $this->products[$productID] : ''; - $suites = $this->testsuite->getSuites($productID, $sort, $pager); + $suites = $this->testsuite->getSuites($productID, $sort, $pager, $type); if(empty($suites) and $pageID > 1) { $pager = pager::init(0, $recPerPage, 1); diff --git a/module/testsuite/model.php b/module/testsuite/model.php index cdce1bb6b3..0116a04688 100644 --- a/module/testsuite/model.php +++ b/module/testsuite/model.php @@ -99,6 +99,7 @@ class testsuiteModel extends model ->beginIF($this->config->systemMode == 'new' and $this->lang->navGroup->testsuite != 'qa')->andWhere('project')->eq($this->session->project)->fi() ->andWhere('deleted')->eq(0) ->beginIF(strpos($param, 'all') === false)->andWhere("(`type` = 'public' OR (`type` = 'private' and addedBy = '{$this->app->user->account}'))")->fi() + ->beginIF(strpos($param, 'review') !== false)->andWhere("FIND_IN_SET('{$this->app->user->account}', `reviewers`)")->fi() ->orderBy($orderBy) ->page($pager) ->fetchAll('id');