* Fix bug #17994.
This commit is contained in:
@@ -1574,6 +1574,7 @@ class bugModel extends model
|
||||
->leftJoin(TABLE_PRODUCT)->alias('t2')
|
||||
->on('t1.product=t2.id')
|
||||
->where('t1.assignedTo')->eq($account)
|
||||
->andWhere('t1.status')->ne('closed')
|
||||
->beginIF(!empty($skipProductIDList))->andWhere('t1.product')->notin($skipProductIDList)->fi()
|
||||
->beginIF(!empty($skipExecutionIDList))->andWhere('t1.execution')->notin($skipExecutionIDList)->fi()
|
||||
->andWhere('t1.deleted')->eq(0)
|
||||
|
||||
@@ -3034,6 +3034,7 @@ class storyModel extends model
|
||||
return $this->dao->select('id, title')
|
||||
->from(TABLE_STORY)
|
||||
->where('deleted')->eq(0)
|
||||
->andWhere('status')->ne('closed')
|
||||
->andWhere('type')->eq($type)
|
||||
->andWhere('vision')->eq($this->config->vision)
|
||||
->andWhere('assignedTo')->eq($account)
|
||||
|
||||
@@ -2343,6 +2343,7 @@ class taskModel extends model
|
||||
->leftjoin(TABLE_PROJECT)->alias('t2')->on('t1.execution = t2.id')
|
||||
->where('t1.assignedTo')->eq($account)
|
||||
->andWhere('t1.deleted')->eq(0)
|
||||
->andWhere('t1.status')->ne('closed')
|
||||
->beginIF($this->config->vision)->andWhere('t1.vision')->eq($this->config->vision)->fi()
|
||||
->beginIF($status != 'all')->andWhere('t1.status')->in($status)->fi()
|
||||
->beginIF(!empty($skipExecutionIDList))->andWhere('t1.execution')->notin($skipExecutionIDList)->fi()
|
||||
|
||||
@@ -1046,6 +1046,7 @@ class testtaskModel extends model
|
||||
->from(TABLE_TESTTASK)->alias('t1')
|
||||
->leftjoin(TABLE_EXTENSION)->alias('t2')->on('t1.execution = t2.id')
|
||||
->where('t1.owner')->eq($account)
|
||||
->andWhere('t1.status')->ne('done')
|
||||
->andWhere('t1.deleted')->eq(0)
|
||||
->beginIF($status != 'all')->andWhere('t1.status')->in($status)->fi()
|
||||
->beginIF(!empty($skipProductIDList))->andWhere('t1.product')->notin($skipProductIDList)->fi()
|
||||
|
||||
Reference in New Issue
Block a user