From a329a84c1deea8a5da1f72ffb300fe63e2b6243d Mon Sep 17 00:00:00 2001 From: "shiyangyangwork@yahoo.cn" Date: Thu, 5 Jan 2012 02:01:04 +0000 Subject: [PATCH] * add param product for getResolvedBugs. --- module/project/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/project/model.php b/module/project/model.php index c8080a8d10..7bc806911b 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -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(); } }