* [task#125050,doing,0.5h] add build search form method for repo log.
This commit is contained in:
+21
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user