* Fix bug#1344

This commit is contained in:
滔哥
2017-12-20 11:21:53 +08:00
parent 5c8e01875b
commit 674d840161
2 changed files with 14 additions and 8 deletions
+2 -2
View File
@@ -960,7 +960,7 @@ class bug extends control
$this->view->users = $users;
$this->view->assignedTo = $assignedTo;
$this->view->projects = $this->loadModel('product')->getProjectPairs($productID, $bug->branch ? "0,{$bug->branch}" : 0, $params = 'nodeleted');
$this->view->builds = $this->loadModel('build')->getProductBuildPairs($productID, $branch = 0, 'all');
$this->view->builds = $this->loadModel('build')->getProductBuildPairs($productID, $branch = 0, 'all', true , $bug->project);
$this->view->actions = $this->action->getList('bug', $bugID);
$this->display();
}
@@ -1018,7 +1018,7 @@ class bug extends control
$this->view->bug = $bug;
$this->view->users = $this->user->getPairs('nodeleted', $bug->resolvedBy);
$this->view->builds = $this->loadModel('build')->getProductBuildPairs($productID, $bug->branch, 'noempty');
$this->view->builds = $this->loadModel('build')->getProductBuildPairs($productID, $bug->branch, 'noempty', true, $bug->project);
$this->view->actions = $this->action->getList('bug', $bugID);
$this->display();