* Fix error of testreport::create.

This commit is contained in:
liumengyi
2023-10-16 16:18:44 +08:00
parent 3176b94974
commit 722b11e5c6
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -393,6 +393,7 @@ foreach(array('generated', 'legacy', 'resolved') as $field)
for($time = $beginTime; $time <= $endTime; $time += 86400)
{
$date = date('m-d', $time);
$generated = !empty($infoValue['generated'][$date]) ? $infoValue['generated'][$date] : 0;
$legacy = !empty($infoValue['legacy'][$date]) ? $infoValue['legacy'][$date] : 0;
$resolved = !empty($infoValue['resolved'][$date]) ? $infoValue['resolved'][$date] : 0;
@@ -401,7 +402,6 @@ for($time = $beginTime; $time <= $endTime; $time += 86400)
$chartOption['legacy']['data'][] = $legacy;
$chartOption['resolved']['data'][] = $resolved;
$date = date('m-d', $time);
$xAxisData[] = $date;
$tableTR[] = h::tr
(
@@ -460,7 +460,7 @@ $bugHandleChart = div
$bugCharts = array();
foreach($bugInfo as $infoKey => $infoValue)
{
if($infokey == 'bugStageGroups' || $infoKey == 'bugHandleGroups') continue;
if($infoKey == 'bugStageGroups' || $infoKey == 'bugHandleGroups') continue;
$list = $infoValue;
if($infoKey == 'bugSeverityGroups') $list = $lang->bug->severityList;
if($infoKey == 'bugStatusGroups') $list = $lang->bug->statusList;
-1
View File
@@ -163,7 +163,6 @@ class testreportZen extends testreport
}
$reportData = array('begin' => $begin, 'end' => $end, 'builds' => $builds, 'tasks' => $tasks, 'owner' => $owner, 'stories' => $stories, 'bugs' => $bugs, 'execution' => $execution, 'productIdList' => $productIdList);
if($method == 'create') unset($reportData['owner']);
return $reportData;
}