diff options
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r-- | routers/repo/issue.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index d09a239638..808fb52b41 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -95,6 +95,11 @@ func Issues(ctx *middleware.Context) { // Get posters. for i := range issues { + if err = issues[i].GetLabels(); err != nil { + ctx.Handle(500, "issue.Issues(GetLabels)", fmt.Errorf("[#%d]%v", issues[i].Id, err)) + return + } + idx := models.PairsContains(pairs, issues[i].Id) if filterMode == models.FM_MENTION && (idx == -1 || !pairs[idx].IsMentioned) { |