1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Fix an error while adding a dependency via UI. (#5862)

Fixes: #5783
This commit is contained in:
Harshit Bansal
2019-01-27 17:01:40 +05:30
committed by Lauris BH
parent 2d8520d039
commit 7e8242ddb1
2 changed files with 3 additions and 2 deletions

View File

@@ -749,6 +749,9 @@ func createIssueDependencyComment(e *xorm.Session, doer *User, issue *Issue, dep
if !add {
cType = CommentTypeRemoveDependency
}
if err = issue.loadRepo(e); err != nil {
return
}
// Make two comments, one in each issue
_, err = createComment(e, &CreateCommentOptions{