+ [story#75279] add the getResult for the count_of_bug_in_severity_in_execution metric.
This commit is contained in:
@@ -12,4 +12,17 @@ class count_of_bug_in_severity_in_execution extends baseCalc
|
||||
if(!isset($this->result[$row->severity])) $this->result[$row->severity] = array();
|
||||
$this->result[$row->severity][$row->id] = $row->id;
|
||||
}
|
||||
|
||||
public function getResult($options = array())
|
||||
{
|
||||
foreach($this->result as $severity => $bugs)
|
||||
{
|
||||
if(!is_array($bugs)) continue;
|
||||
|
||||
$this->result[$severity] = count($bugs);
|
||||
}
|
||||
|
||||
$records = $this->getRecords(array('severity', 'value'));
|
||||
return $this->filterByOptions($records, $options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user