summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-28 00:06:31 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-28 00:06:31 -0400
commitff690fd9760e0cfb5ae9e49aecb7a201f7ca8304 (patch)
tree3e601c42e1fc8ff50df02bf04fb48680a031123e /routers/repo/issue.go
parentbcfa78b8b559c638c40fa9d0c4ff08c6d8307e88 (diff)
downloadgitea-ff690fd9760e0cfb5ae9e49aecb7a201f7ca8304.tar.gz
gitea-ff690fd9760e0cfb5ae9e49aecb7a201f7ca8304.zip
Fix #200, add VERSION to template files
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go5
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) {