From 491ea3a07088c90899d059028b9268d81bb89d15 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Mon, 30 Nov 2020 17:02:31 +0800 Subject: [PATCH] * Fix a bug. --- module/bug/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index 5385691ba5..7c1c57674c 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -1379,7 +1379,7 @@ class bugModel extends model ->where('deleted')->eq(0) ->beginIF($projectID)->andWhere('PRJ')->eq($projectID)->fi() ->beginIF(!$this->app->user->admin)->andWhere('PRJ')->in($this->app->user->view->projects)->fi() - ->beginIF(!$this->app->user->admin)->andWhere('project')->in($this->app->user->view->sprints)->fi() + ->beginIF(!$this->app->user->admin)->andWhere('project')->in('0,' . $this->app->user->view->sprints)->fi() ->beginIF($type != 'closedBy' and $this->app->moduleName == 'block')->andWhere('status')->ne('closed')->fi() ->beginIF($type != 'all')->andWhere("`$type`")->eq($account)->fi() ->orderBy($orderBy)