This commit is contained in:
songchenxuan
2023-05-25 15:47:03 +08:00
parent db02eb695d
commit f6ce1fcdc3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -938,7 +938,7 @@ class bug extends control
$this->view->branchName = $product->type == 'normal' ? '' : zget($branches, $bug->branch, '');
$this->view->users = $this->user->getPairs('noletter');
$this->view->actions = $this->action->getList('bug', $bugID);
$this->view->builds = $this->loadModel('build')->getBuildPairs($productID, 'all');
$this->view->builds = $this->loadModel('build')->getBuildPairs($productID, 'all', 'noterminate, nodone, hasdeleted');
$this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('bug', $bugID);
$this->view->product = $product;
$this->view->linkCommits = $this->loadModel('repo')->getCommitsByObject($bugID, 'bug');
+1 -1
View File
@@ -1675,7 +1675,7 @@ class bugModel extends model
{
$productIdList = array();
foreach($bugs as $bug) $productIdList[$bug->product] = $bug->product;
$builds = $this->loadModel('build')->getBuildPairs(array_unique($productIdList), 'all', $params = '');
$builds = $this->loadModel('build')->getBuildPairs(array_unique($productIdList), 'all', 'noterminate, nodone, hasdeleted');
/* Process the openedBuild and resolvedBuild fields. */
foreach($bugs as $key => $bug)