* Finish task #5296.

This commit is contained in:
Yagami
2019-02-22 13:20:24 +08:00
parent 34555b1e8d
commit 1d1d64f600
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -1325,6 +1325,7 @@ class bugModel extends model
$bugs = $this->dao->select('*')->from(TABLE_BUG)
->where('deleted')->eq(0)
->beginIF(!$this->app->user->admin)->andWhere('project')->in('0,' . $this->app->user->view->projects)->fi()
->beginIF($type != 'closedBy')->andWhere('status')->ne('closed')->fi()
->beginIF($type != 'all')->andWhere("`$type`")->eq($account)->fi()
->orderBy($orderBy)
->beginIF($limit > 0)->limit($limit)->fi()