* adjust code for task #610.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-12-07 06:19:08 +00:00
parent c4be65d61b
commit 8f7af22077
4 changed files with 43 additions and 18 deletions

View File

@@ -570,7 +570,7 @@ class bug extends control
* @access public
* @return void
*/
public function resolve($bugID)
public function resolve($bugID, $toStory = false)
{
$this->view->users = $this->user->getPairs('nodeleted');
@@ -606,6 +606,7 @@ class bug extends control
$this->view->position[] = html::a($this->createLink('bug', 'browse', "productID=$productID"), $this->products[$productID]);
$this->view->position[] = $this->lang->bug->resolve;
$this->view->toStory = $toStory;
$this->view->bug = $bug;
$this->view->builds = $this->loadModel('build')->getProductBuildPairs($productID);
$this->view->actions = $this->action->getList('bug', $bugID);