*Finish task #46018.

This commit is contained in:
songchenxuan
2022-01-05 09:40:43 +08:00
parent 0d2445bcb3
commit 5b3d3e5ce2
+1 -5
View File
@@ -171,13 +171,9 @@ class testreportModel extends model
/* Get the bugs reactivated during the testreport. */
$allBugs = $this->dao->select('*')->from(TABLE_BUG)->where('product')->in($productIdList)->andWhere('deleted')->eq(0)->fetchAll('id');
$buildBugs = array();
foreach($allBugs as $bug)
{
if(array_intersect(explode(',', $bug->openedBuild), $buildIdList)) $buildBugs[$bug->id] = $bug;
}
foreach($allBugs as $bug) if(array_intersect(explode(',', $bug->openedBuild), $buildIdList)) $buildBugs[$bug->id] = $bug;
$actions = $this->dao->select('*')->from(TABLE_ACTION)->where('objectType')->eq('bug')->andWhere('action')->eq('activated')->andWhere('objectID')->in(array_keys($buildBugs))->fetchGroup('objectID', 'id');
$histories = $this->loadModel('action')->getHistory(array_keys($actions));
a($actions);
foreach($actions as $objectID => $action)
{
foreach($action as $actionID => $action)