* code for task#1678.

This commit is contained in:
xia0ta0
2013-08-08 16:08:15 +08:00
parent 88e92a19aa
commit 36bbaf711e
5 changed files with 51 additions and 32 deletions
+3 -1
View File
@@ -221,6 +221,7 @@ class bug extends control
{
$this->view->users = $this->user->getPairs('nodeleted,devfirst');
if(empty($this->products)) $this->locate($this->createLink('product', 'create'));
$this->app->loadLang('release');
if(!empty($_POST))
{
@@ -305,9 +306,10 @@ class bug extends control
}
else
{
$builds = $this->loadModel('build')->getProductBuildPairs($productID, 'noempty');
$builds = $this->loadModel('build')->getProductBuildPairs($productID, 'noempty,release');
$stories = $this->story->getProductStoryPairs($productID);
}
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->bug->create;
$this->view->position[] = html::a($this->createLink('bug', 'browse', "productID=$productID"), $this->products[$productID]);
$this->view->position[] = $this->lang->bug->create;