* add param product for getResolvedBugs.

This commit is contained in:
shiyangyangwork@yahoo.cn
2012-01-05 02:01:04 +00:00
parent 6b6dc56a08
commit a329a84c1d

View File

@@ -1027,11 +1027,13 @@ class projectModel extends model
*/
public function getResolvedBugs($projectID)
{
$project = $this->getById($projectID);
$project = $this->getById($projectID);
$products = $this->dao->select('product')->from(TABLE_PROJECTPRODUCT)->where('project')->eq($projectID)->fetchPairs('product');
return $this->dao->select('id, title, status')->from(TABLE_BUG)
->where('status')->eq('resolved')
->andWhere('resolvedDate')->ge($project->begin)
->andWhere('resolution')->eq('fixed')
->andWhere('product')->in($products)
->fetchAll();
}
}