summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-05 12:46:26 -0700
committerUnknwon <u@gogs.io>2016-08-05 12:46:26 -0700
commitcf6d321991735a2891e16066f74a75f51719e99e (patch)
tree5fa541d53ff10a4b3e601b375261f382ef532a8f /routers
parent50422f1fc226d71fe2f5f701c7ebdd1a5f2d143e (diff)
downloadgitea-cf6d321991735a2891e16066f74a75f51719e99e.tar.gz
gitea-cf6d321991735a2891e16066f74a75f51719e99e.zip
Ignore repository with issue disabled or use external tracker in dashboard issues
Diffstat (limited to 'routers')
-rw-r--r--routers/user/home.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 95d0b582b5..43d839ffd4 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -220,7 +220,8 @@ func Issues(ctx *context.Context) {
showRepos := make([]*models.Repository, 0, len(repos))
for _, repo := range repos {
if (isPullList && repo.NumPulls == 0) ||
- (!isPullList && repo.NumIssues == 0) {
+ (!isPullList &&
+ (!repo.EnableIssues || repo.EnableExternalTracker || repo.NumIssues == 0)) {
continue
}