diff options
Diffstat (limited to 'modules/context/repo.go')
-rw-r--r-- | modules/context/repo.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go index 9723c85619..f34b05d1d0 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -449,14 +449,18 @@ func RepoAssignment() macaron.Handler { ctx.Data["RepoExternalIssuesLink"] = unit.ExternalTrackerConfig().ExternalTrackerURL } - ctx.Data["NumReleases"], err = models.GetReleaseCountByRepoID(ctx.Repo.Repository.ID, models.FindReleasesOptions{ - IncludeDrafts: false, - IncludeTags: true, + ctx.Data["NumTags"], err = models.GetReleaseCountByRepoID(ctx.Repo.Repository.ID, models.FindReleasesOptions{ + IncludeTags: true, }) if err != nil { ctx.ServerError("GetReleaseCountByRepoID", err) return } + ctx.Data["NumReleases"], err = models.GetReleaseCountByRepoID(ctx.Repo.Repository.ID, models.FindReleasesOptions{}) + if err != nil { + ctx.ServerError("GetReleaseCountByRepoID", err) + return + } ctx.Data["Title"] = owner.Name + "/" + repo.Name ctx.Data["Repository"] = repo |