* Fix a bug.
This commit is contained in:
@@ -508,7 +508,10 @@ class testcaseModel extends model
|
||||
->beginIF($this->app->openApp == 'project')->leftJoin(TABLE_PROJECTCASE)->alias('t2')->on('t1.id=t2.case')->fi()
|
||||
->where($caseQuery)
|
||||
->beginIF($this->app->openApp == 'project')->andWhere('t2.project')->eq($this->session->project)->fi()
|
||||
->beginIF(!empty($productID) and $queryProductID != 'all')->andWhere('product')->eq($productID)->fi()
|
||||
->beginIF(!empty($productID) and $queryProductID != 'all')
|
||||
->beginIF($this->app->openApp == 'project')->andWhere('t2.product')->eq($productID)->fi()
|
||||
->beginIF($this->app->openApp != 'project')->andWhere('product')->eq($productID)->fi()
|
||||
->fi()
|
||||
->beginIF($auto != 'unit')->andWhere('auto')->ne('unit')->fi()
|
||||
->beginIF($auto == 'unit')->andWhere('auto')->eq('unit')->fi()
|
||||
->andWhere('deleted')->eq(0)
|
||||
|
||||
Reference in New Issue
Block a user