* init bug summary.

This commit is contained in:
zhujinyong
2012-07-16 02:44:52 +00:00
parent 653d168326
commit e07729d225

View File

@@ -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;