From 9ae5f3e8fe5727979426a68a77111c543afcf27f Mon Sep 17 00:00:00 2001 From: dingguodong Date: Tue, 13 Jul 2021 10:02:06 +0800 Subject: [PATCH] * Change getting repoID from _GET to getting from para. --- module/gitlab/control.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;