* Reactivate issue when reopen the bug.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user