* [bug#57689] fix bug for search.

This commit is contained in:
liyang
2024-12-03 09:37:22 +08:00
committed by 田淑杰
parent b86ccba777
commit 14ff07f167
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -974,9 +974,9 @@ class projectModel extends model
$this->config->build->search['module'] = $type == 'project' ? 'projectBuild' : 'executionBuild';
$this->config->build->search['actionURL'] = helper::createLink($this->app->rawModule, $this->app->rawMethod, "projectID=$projectID&type=bysearch&queryID=myQueryID");
$this->config->build->search['queryID'] = $queryID;
$this->config->build->search['queryID'] = (int)$queryID;
$this->config->build->search['params']['product']['values'] = $products;
$this->config->build->search['params']['system']['values'] = $this->loadModel('system')->getPairs((int)$productID, '0');
$this->config->build->search['params']['system']['values'] = $this->loadModel('system')->getPairs($queryID ? 0 : (int)$productID, '0');
$this->loadModel('search')->setSearchParams($this->config->build->search);
return true;