Skip to content

Commit b1cb52e

Browse files
jolheiserlafriks
authored andcommitted
[API] Load issue attributes when editing an issue (#6723) (#6725)
1 parent 799f5e0 commit b1cb52e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

routers/api/v1/repo/issue.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,12 @@ func EditIssue(ctx *context.APIContext, form api.EditIssueOption) {
291291
}
292292
issue.Repo = ctx.Repo.Repository
293293

294+
err = issue.LoadAttributes()
295+
if err != nil {
296+
ctx.Error(500, "LoadAttributes", err)
297+
return
298+
}
299+
294300
if !issue.IsPoster(ctx.User.ID) && !ctx.Repo.CanWrite(models.UnitTypeIssues) {
295301
ctx.Status(403)
296302
return

0 commit comments

Comments
 (0)