* Reactivate issue when reopen the bug.

This commit is contained in:
dingguodong
2021-06-29 13:58:53 +08:00
parent af524d455b
commit 7f42605c31
+2 -1
View File
@@ -707,7 +707,7 @@ class gitlabModel extends model
}
/**
* Delete ans issue.
* Delete an issue.
*
* @param int $gitlabID
* @param int $projectID
@@ -885,6 +885,7 @@ class gitlabModel extends model
/* issue->state is null when creating it, we should put status_event when updating it. */
if(isset($issue->state) and $issue->state == 'closed') $issue->state_event='close';
if(isset($issue->state) and $issue->state == 'opened') $issue->state_event='reopen';
return $issue;
}