+ Delete related issue in gitlab when deleting story.

This commit is contained in:
dingguodong
2021-06-28 21:47:26 +08:00
parent 8189d60709
commit bb3bce97db
+4
View File
@@ -987,6 +987,10 @@ class story extends control
}
else
{
/* Delete related issue in gitlab. */
$relation = $this->loadModel('gitlab')->getGitlabIssueFromRelation('story', $storyID);
$this->loadModel('gitlab')->deleteIssue($relation->gitlabID, $relation->projectID, 'story', $storyID);
$this->story->delete(TABLE_STORY, $storyID);
if($story->parent > 0)
{