Fix for #3410 overall issues for organisations is limited to num_repos from the user (#3412)

This commit is contained in:
lstahlman 2016-08-09 10:00:42 -07:00 committed by 无闻
parent bbe866122d
commit 2c82fc3edb

View file

@ -202,7 +202,7 @@ func Issues(ctx *context.Context) {
var err error
var repos []*models.Repository
if ctxUser.IsOrganization() {
repos, _, err = ctxUser.GetUserRepositories(ctx.User.ID, 1, ctx.User.NumRepos)
repos, _, err = ctxUser.GetUserRepositories(ctx.User.ID, 1, ctxUser.NumRepos)
if err != nil {
ctx.Handle(500, "GetRepositories", err)
return