* finish task #2929.

This commit is contained in:
pengjiangxiu
2017-02-24 14:52:48 +08:00
parent 0a00ab84a8
commit 1d893447eb
3 changed files with 16 additions and 1 deletions
+1
View File
@@ -258,6 +258,7 @@ $lang->bug->report->charts['bugsPerSeverity'] = 'Bug严重程度统计';
$lang->bug->report->charts['bugsPerResolution'] = 'Bug解决方案统计';
$lang->bug->report->charts['bugsPerStatus'] = 'Bug状态统计';
$lang->bug->report->charts['bugsPerActivatedCount'] = 'Bug激活次数统计';
$lang->bug->report->charts['bugsPerPri'] = 'Bug优先级统计';
$lang->bug->report->charts['bugsPerType'] = 'Bug类型统计';
$lang->bug->report->charts['bugsPerAssignedTo'] = '指派给统计';
//$lang->bug->report->charts['bugLiveDays'] = 'Bug处理时间统计';
+14
View File
@@ -1622,6 +1622,20 @@ class bugModel extends model
return $datas;
}
/**
* Get report data of bugs per pri
*
* @access public
* @return array
*/
public function getDataOfBugsPerPri()
{
$datas = $this->dao->select('pri AS name, COUNT(*) AS value')->from(TABLE_BUG)->where($this->reportCondition())->groupBy('name')->orderBy('value DESC')->fetchAll('name');
if(!$datas) return array();
foreach($datas as $status => $data) if(isset($this->lang->bug->statusList[$status])) $data->name = $this->lang->bug->statusList[$status];
return $datas;
}
/**
* Get report data of bugs per status.
*
+1 -1
View File
@@ -302,7 +302,7 @@ class testcase extends control
/* Get the status of stories are not closed. */
$storyStatus = $this->lang->story->statusList;
unset($storyStatus['closed']);
//unset($storyStatus['closed']);
$modules = array();
if($currentModuleID)
{