diff --git a/module/gitlab/control.php b/module/gitlab/control.php index c0af485b49..28540a6fe2 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -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;