diff --git a/module/bug/lang/zh-cn.php b/module/bug/lang/zh-cn.php index b2b76deffa..64926625b7 100644 --- a/module/bug/lang/zh-cn.php +++ b/module/bug/lang/zh-cn.php @@ -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处理时间统计'; diff --git a/module/bug/model.php b/module/bug/model.php index 3e25bb1d8b..d89f4abc79 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -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. * diff --git a/module/testcase/control.php b/module/testcase/control.php index ad362c7a2d..fefafc9acb 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -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) {