* Adjust testreport module.
This commit is contained in:
@@ -147,10 +147,10 @@ class testreportModel extends model
|
||||
{
|
||||
$objectID = (int)$objectID;
|
||||
return $this->dao->select('*')->from(TABLE_TESTREPORT)->where('deleted')->eq(0)
|
||||
->beginIF(!empty($extra))->andWhere('objectID')->eq($extra)->fi()
|
||||
->beginIF($objectType == 'product')->andWhere('product')->eq($objectID)->fi()
|
||||
->beginIF($objectType == 'project')->andWhere('project')->eq($objectID)->fi()
|
||||
->beginIF($objectType == 'execution')->andWhere('execution')->eq($objectID)->fi()
|
||||
->beginIF($objectType == 'execution')->andWhere('objectID')->eq($objectID)->andWhere('objectType')->eq('execution')->fi()
|
||||
->beginIF($objectType == 'project')->andWhere('objectID')->eq($objectID)->andWhere('objectType')->eq('project')->fi()
|
||||
->beginIF($objectType == 'product' and $extra)->andWhere('objectID')->eq((int)$extra)->andWhere('objectType')->eq('testtask')->fi()
|
||||
->beginIF($objectType == 'product' and empty($extra))->andWhere('product')->eq($objectID)->fi()
|
||||
->orderBy($orderBy)
|
||||
->page($pager)
|
||||
->fetchAll('id');
|
||||
|
||||
Reference in New Issue
Block a user