* code for task #45436.

This commit is contained in:
王怡栋
2021-12-09 16:31:51 +08:00
parent 91faac255a
commit 43555ed066
3 changed files with 106 additions and 101 deletions
+2 -1
View File
@@ -948,7 +948,6 @@ class gitlab extends control
if($gitlab) $user = $this->gitlab->apiGetCurrentUser($gitlab->url, $gitlab->token);
if(empty($user->is_admin)) die(js::alert($this->lang->gitlab->tokenLimit) . js::locate($this->createLink('gitlab', 'edit', array('gitlabID' => $gitlabID))));
if($_POST)
{
$executionList = $this->post->executionList;
@@ -979,6 +978,8 @@ class gitlab extends control
if($objectID)
{
$this->loadModel('action')->create($objectType, $objectID, 'ImportFromGitlab', '', $issueID);
$object->id = $objectID;
$this->gitlab->saveImportedIssue($gitlabID, $projectID, $objectType, $objectID, $issue, $object);
}