* Fix bug #3260,3186.

This commit is contained in:
tianshujie98
2020-07-03 17:20:24 +08:00
parent 29034b4a82
commit a28596cccc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ class testtaskModel extends model
->where('t1.deleted')->eq(0)
->andWhere('t1.auto')->ne('unit')
->andWhere('t3.id')->in($this->app->user->view->projects)
->andWhere('t1.project')->in("0,{$this->app->user->view->projects}") //Fix bug #3260.
->beginIF($scopeAndStatus[0] == 'local')->andWhere('t1.product')->eq((int)$productID)->fi()
->beginIF($scopeAndStatus[0] == 'all')->andWhere('t1.product')->in($products)->fi()
->beginIF($scopeAndStatus[1] == 'totalStatus')->andWhere('t1.status')->in('blocked,doing,wait,done')->fi()