* [task#125050,doing,0.5h] add build search form method for repo log.

This commit is contained in:
caoyanyi
2024-08-12 14:38:42 +08:00
committed by 李阳
parent 94bd8a8987
commit 2e77e5dba0
+21 -1
View File
@@ -798,7 +798,7 @@ class repoZen extends repo
else
{
$this->setRepoBranch('');
return array('', array(), array());
return array($branchID, array(), array());
}
}
@@ -1791,4 +1791,24 @@ class repoZen extends repo
if(!$hasSession) session_write_close();
return $repoID;
}
/**
* 构建提交页面搜索表单。
* Build commit search form.
*
* @param int $queryID
* @param string $actionURL
* @access protected
* @return void
*/
protected function buildSearchForm(int $queryID, string $actionURL)
{
session_start();
$this->config->repo->search = $this->config->repo->searchCommits;
$this->config->repo->search['actionURL'] = $actionURL;
$this->config->repo->search['queryID'] = $queryID;
$this->loadModel('search')->setSearchParams($this->config->repo->search);
session_write_close();
}
}