* Fix metric of product.
This commit is contained in:
@@ -44,21 +44,7 @@ class count_of_daily_created_bug_in_product extends baseCalc
|
||||
|
||||
public function getResult($options = array())
|
||||
{
|
||||
$records = array();
|
||||
foreach($this->result as $product => $years)
|
||||
{
|
||||
foreach($years as $year => $months)
|
||||
{
|
||||
foreach($months as $month => $days)
|
||||
{
|
||||
foreach($days as $day => $value)
|
||||
{
|
||||
$records[] = array('product' => $product, 'year' => $year, 'month' => $month, 'day' => $day, 'value' => $value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$records = $this->getRecords(array('product', 'year', 'month', 'day', 'value'));
|
||||
return $this->filterByOptions($records, $options);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ class count_of_delivered_story_in_product extends baseCalc
|
||||
|
||||
public function getResult($options = array())
|
||||
{
|
||||
$records = $this->getRecords(array('value'));
|
||||
$records = $this->result;
|
||||
return $this->filterByOptions($records, $options);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class count_of_invalid_story_in_product extends baseCalc
|
||||
|
||||
public function getResult($options = array())
|
||||
{
|
||||
$records = $this->getRecords(array('value'));
|
||||
$records = $this->result;
|
||||
return $this->filterByOptions($records, $options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user