* Finish story #48612.
This commit is contained in:
@@ -544,10 +544,12 @@ class testreportModel extends model
|
||||
{
|
||||
foreach($builds as $build) $bugIdList .= $build->bugs . ',';
|
||||
}
|
||||
$bugIdList = trim($bugIdList, ',');
|
||||
|
||||
return $this->dao->select('*')->from(TABLE_BUG)->where('deleted')->eq(0)
|
||||
->andWhere('product')->in($product)
|
||||
->andWhere('openedDate')->lt("$begin 23:59:59")
|
||||
->andWhere("(id " . helper::dbIN(trim($bugIdList, ',')) . " OR (resolvedBuild = 'trunk' and resolvedDate >= '$begin' and resolvedDate <= '$end 23:59:59'))")
|
||||
->andWhere("id")->in($bugIdList)
|
||||
->fetchAll('id');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user