*Code for code review.

This commit is contained in:
songchenxuan
2022-01-06 13:08:46 +08:00
parent 6d80b334bf
commit 8927059720
11 changed files with 50 additions and 17 deletions
+39 -2
View File
@@ -330,8 +330,20 @@ class testreport extends control
$this->view->datas['testTaskPerRunner'] = $this->report->computePercent($perCaseRunner);
$this->view->legacyBugs = $bugInfo['legacyBugs'];
$bugSummary['foundBugs'] = $bugInfo['foundBugs'];
$bugSummary['activatedBugs'] = count($bugInfo['activatedBugs']);
$bugSummary['countBugByTask'] = $bugInfo['countBugByTask'];
$bugSummary['bugConfirmedRate'] = $bugInfo['bugConfirmedRate'];
$bugSummary['bugCreateByCaseRate'] = $bugInfo['bugCreateByCaseRate'];
unset($bugInfo['foundBugs']);
unset($bugInfo['legacyBugs']);
$this->view->bugInfo = $bugInfo;
unset($bugInfo['activatedBugs']);
unset($bugInfo['countBugByTask']);
unset($bugInfo['bugConfirmedRate']);
unset($bugInfo['bugCreateByCaseRate']);
$this->view->bugInfo = $bugInfo;
$this->view->bugSummary = $bugSummary;
$this->view->objectID = $objectID;
$this->view->objectType = $objectType;
@@ -459,8 +471,20 @@ class testreport extends control
$this->view->datas['testTaskPerRunner'] = $this->report->computePercent($perCaseRunner);
$this->view->legacyBugs = $bugInfo['legacyBugs'];
$bugSummary['foundBugs'] = $bugInfo['foundBugs'];
$bugSummary['activatedBugs'] = count($bugInfo['activatedBugs']);
$bugSummary['countBugByTask'] = $bugInfo['countBugByTask'];
$bugSummary['bugConfirmedRate'] = $bugInfo['bugConfirmedRate'];
$bugSummary['bugCreateByCaseRate'] = $bugInfo['bugCreateByCaseRate'];
unset($bugInfo['foundBugs']);
unset($bugInfo['legacyBugs']);
$this->view->bugInfo = $bugInfo;
unset($bugInfo['activatedBugs']);
unset($bugInfo['countBugByTask']);
unset($bugInfo['bugConfirmedRate']);
unset($bugInfo['bugCreateByCaseRate']);
$this->view->bugInfo = $bugInfo;
$this->view->bugSummary = $bugSummary;
$this->display();
}
@@ -567,8 +591,21 @@ class testreport extends control
$this->view->datas['testTaskPerRunner'] = $this->report->computePercent($perCaseRunner);
$this->view->legacyBugs = $bugInfo['legacyBugs'];
$bugSummary['foundBugs'] = $bugInfo['foundBugs'];
$bugSummary['activatedBugs'] = count($bugInfo['activatedBugs']);
$bugSummary['countBugByTask'] = $bugInfo['countBugByTask'];
$bugSummary['bugConfirmedRate'] = $bugInfo['bugConfirmedRate'];
$bugSummary['bugCreateByCaseRate'] = $bugInfo['bugCreateByCaseRate'];
unset($bugInfo['foundBugs']);
unset($bugInfo['legacyBugs']);
unset($bugInfo['activatedBugs']);
unset($bugInfo['countBugByTask']);
unset($bugInfo['bugConfirmedRate']);
unset($bugInfo['bugCreateByCaseRate']);
$this->view->bugInfo = $bugInfo;
$this->view->bugSummary = $bugSummary;
$this->display();
}