diff --git a/module/product/model.php b/module/product/model.php index 424628010d..edc4b14cba 100755 --- a/module/product/model.php +++ b/module/product/model.php @@ -1370,6 +1370,7 @@ class productModel extends model $assignToNull = $this->productTao->getAssignToNullTODO($productIdList); list($stories, $reqs) = $this->productTao->getStatsStoriesAndRequirements($productIdList, $storyType); $executionCountPairs = $this->productTao->getExecutionCountPairs($productIdList); + $coveragePairs = $this->productTao->getCaseCoveragePairs($productIdList); /* Render statistic result to each product. */ $stats = array(); @@ -1389,6 +1390,7 @@ class productModel extends model $product->thisWeekBugs = isset($thisWeekBugs[$product->id]) ? $thisWeekBugs[$product->id] : 0; $product->assignToNull = isset($assignToNull[$product->id]) ? $assignToNull[$product->id] : 0; $product->executions = isset($executionCountPairs[$product->id]) ? $executionCountPairs[$product->id] : 0; + $product->coverage = isset($coveragePairs[$product->id]) ? $coveragePairs[$product->id] : 0; /* Calculate product progress. */ $closedTotal = $product->stories['closed'] + $product->requirements['closed']; diff --git a/module/product/ui/all.html.php b/module/product/ui/all.html.php index ae40507e5f..1aaca54500 100644 --- a/module/product/ui/all.html.php +++ b/module/product/ui/all.html.php @@ -37,8 +37,7 @@ foreach($productStats as $productID => $product) $item->parent = null; $item->productLine = $product->lineName; $item->execution = $product->executions; - $item->feedback = rand(0, 100); - $item->testCaseCoverage = rand(0, 100); + $item->testCaseCoverage = $product->coverage; $item->releasesOld = rand(0, 10); $data[] = $item;