We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6442205 commit 6642286Copy full SHA for 6642286
routers/api/v1/repo/issue.go
@@ -542,7 +542,11 @@ func EditIssue(ctx *context.APIContext, form api.EditIssueOption) {
542
// Refetch from database to assign some automatic values
543
issue, err = models.GetIssueByID(issue.ID)
544
if err != nil {
545
- ctx.Error(http.StatusInternalServerError, "GetIssueByID", err)
+ ctx.InternalServerError(err)
546
+ return
547
+ }
548
+ if err = issue.LoadMilestone(); err != nil {
549
550
return
551
}
552
ctx.JSON(http.StatusCreated, issue.APIFormat())
0 commit comments