* when create bug, pass the product param.

This commit is contained in:
wangchunsheng
2010-04-24 15:12:29 +00:00
parent 6875e1077b
commit e825635ec0
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -236,7 +236,9 @@ class project extends control
$this->session->set('bugList', $this->app->getURI(true));
/* 公共的操作。*/
$project = $this->commonAction($projectID);
$project = $this->commonAction($projectID);
$products = $this->project->getProducts($project->id);
$productID = key($products); // 取第一个产品,用来提交Bug。
/* 设定header和position信息。*/
$header['title'] = $project->name . $this->lang->colon . $this->lang->project->bug;
@@ -257,6 +259,7 @@ class project extends control
$this->assign('pager', $pager);
$this->assign('orderBy', $orderBy);
$this->assign('users', $users);
$this->assign('productID',$productID);
$this->display();
}