+ add search by module, project and build.

This commit is contained in:
wangchunsheng
2010-01-21 07:29:55 +00:00
parent c72c4a65f9
commit bc66fdc3d4
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -56,6 +56,10 @@ class bug extends control
/* 设置搜索表单。*/
$this->config->bug->search['actionURL'] = $this->createLink('bug', 'browse', "productID=$productID&browseType=bySearch");
$this->config->bug->search['params']['module']['values'] = $this->tree->getOptionMenu($productID, $viewType = 'bug', $rooteModuleID = 0);
$this->config->bug->search['params']['project']['values'] = $this->product->getProjectPairs($productID);
$this->config->bug->search['params']['openedBuild']['values'] = $this->loadModel('build')->getProductBuildPairs($productID);
$this->config->bug->search['params']['resolvedBuild']['values'] = $this->build->getProductBuildPairs($productID);
$this->view->searchForm = $this->fetch('search', 'buildForm', $this->config->bug->search);
/* 设置菜单,登记session。*/