* Fix the issue of creating build.

This commit is contained in:
tianshujie98
2020-12-04 10:30:44 +08:00
parent 2e7632cb40
commit c8a5eb24e4
11 changed files with 48 additions and 5 deletions
+4 -1
View File
@@ -28,11 +28,13 @@ class projectBuild extends control
$products = $this->project->getProducts($projectID, false);
$products = array('' => '') + $products;
$projects = $this->project->getExecutionsByProject((int)$projectID, 'all', '', true);
/* Build the search form. */
$type = strtolower($type);
$queryID = ($type == 'bysearch') ? (int)$param : 0;
$actionURL = $this->createLink('projectbuild', 'browse', "projectID=$projectID&type=bysearch&queryID=myQueryID");
$this->project->buildProjectBuildSearchForm($products, $queryID, $actionURL);
$this->project->buildProjectBuildSearchForm($products, $queryID, $actionURL, $projects, 'projectBuild');
if($type == 'bysearch')
{
@@ -62,6 +64,7 @@ class projectBuild extends control
$this->view->product = $type == 'product' ? $param : 'all';
$this->view->project = $project;
$this->view->products = $products;
$this->view->projects = $projects;
$this->view->type = $type;
$this->display();