Skip to content

Commit

Permalink
make sure labels are actually returned (go-gitea#6053)
Browse files Browse the repository at this point in the history
  • Loading branch information
adelowo committed Feb 13, 2019
1 parent c8f061e commit 1294576
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions routers/api/v1/repo/issue_label.go
Expand Up @@ -51,6 +51,11 @@ func ListIssueLabels(ctx *context.APIContext) {
return
}

if err := issue.LoadAttributes(); err != nil {
ctx.Error(500, "LoadAttributes", err)
return
}

apiLabels := make([]*api.Label, len(issue.Labels))
for i := range issue.Labels {
apiLabels[i] = issue.Labels[i].APIFormat()
Expand Down

0 comments on commit 1294576

Please sign in to comment.