From e07729d225215abf2bddeaca56cb86eb41e63155 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Mon, 16 Jul 2012 02:44:52 +0000 Subject: [PATCH] * init bug summary. --- module/report/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/report/model.php b/module/report/model.php index e2c43e39f0..d52cc3b51e 100644 --- a/module/report/model.php +++ b/module/report/model.php @@ -339,6 +339,7 @@ EOT; public function getBugs($begin, $end) { $bugs = $this->dao->select('id, resolution, openedBy')->from(TABLE_BUG)->where('deleted')->eq(0)->fetchAll(); + $bugSummary = array(); foreach($bugs as $bug) { $bugSummary[$bug->openedBy][$bug->resolution] = empty($bugSummary[$bug->openedBy][$bug->resolution]) ? 1 : $bugSummary[$bug->openedBy][$bug->resolution] + 1;