From 2e77e5dba044aa0d6164c181d3a288d8d66d5af1 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Mon, 12 Aug 2024 14:30:16 +0800 Subject: [PATCH] * [task#125050,doing,0.5h] add build search form method for repo log. --- module/repo/zen.php | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/module/repo/zen.php b/module/repo/zen.php index 81d6651064..375e38ca97 100644 --- a/module/repo/zen.php +++ b/module/repo/zen.php @@ -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(); + } }