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(); + } }