* finish task#665

This commit is contained in:
chencongzhi520@gmail.com
2012-04-26 03:27:20 +00:00
parent 497953814f
commit 059a022ac1
+8
View File
@@ -129,6 +129,14 @@ class bug extends control
$this->view->searchForm = $this->fetch('search', 'buildForm', $this->config->bug->search);
$users = $this->user->getPairs('noletter');
/* Process the openedBuild and resolvedBuild fields. */
$builds = $this->loadModel('build')->getProductBuildPairs($productID);
foreach($bugs as $key => $bug)
{
$bugs[$key]->openedBuild = $builds[$bug->openedBuild];
$bugs[$key]->resolvedBuild = $builds[$bug->resolvedBuild];
}
$header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->bug->common;
$position[] = html::a($this->createLink('bug', 'browse', "productID=$productID"), $this->products[$productID]);