* Fix bug.

This commit is contained in:
leiyong
2020-12-04 11:28:46 +08:00
parent a50371c577
commit 5dacb41729
3 changed files with 11 additions and 13 deletions
+1 -8
View File
@@ -2941,12 +2941,10 @@ class projectModel extends model
* @param array $products
* @param int $queryID
* @param string $actionURL
* @param array $projects
* @param string $type projectBuild
* @access public
* @return void
*/
public function buildProjectBuildSearchForm($products, $queryID, $actionURL, $projects = '', $type = '')
public function buildProjectBuildSearchForm($products, $queryID, $actionURL)
{
$this->loadModel('build');
@@ -2955,11 +2953,6 @@ class projectModel extends model
$this->config->build->search['actionURL'] = $actionURL;
$this->config->build->search['queryID'] = $queryID;
$this->config->build->search['params']['product']['values'] = $products;
if($type == 'projectBuild')
{
$this->config->build->search['fields']['project'] = $this->lang->projectCommon;
$this->config->build->search['params']['project'] = array('operator' => '=', 'control' => 'select', 'values' => array('' => '') + $projects);
}
$this->loadModel('search')->setSearchParams($this->config->build->search);
}