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)