* Change getting repoID from _GET to getting from para.

This commit is contained in:
dingguodong
2021-07-13 10:02:06 +08:00
parent cc60268ee4
commit 9ae5f3e8fe
+3 -2
View File
@@ -254,12 +254,13 @@ class gitlab extends control
/**
* Import gitlab issue to zentaopms.
*
* @param int $repoID
* @access public
* @return void
*/
public function importIssue()
public function importIssue($repoID)
{
$repo = $this->loadModel('repo')->getRepoByID($this->get->repo);
$repo = $this->loadModel('repo')->getRepoByID($repoID);
$productIDList = explode(',', $repo->product);
$gitlabID = $repo->gitlab;
$projectID = $repo->project;