mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-14 18:33:42 +02:00
1 parent
c8f061e15b
commit
253efbcb51
1 file changed
+5
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user