diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-26 15:32:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-26 15:32:53 +0800 |
commit | 8d51f28ba04980734a04fef645a8065472e6ca63 (patch) | |
tree | 80a3c6887082354aa4b1e2337191cabf71c142de /routers | |
parent | 59510d6227962a455c8276a5f3330215fb67f747 (diff) | |
download | gitea-8d51f28ba04980734a04fef645a8065472e6ca63.tar.gz gitea-8d51f28ba04980734a04fef645a8065472e6ca63.zip |
Fix wrong paging on org members (#9990)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/org/members.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/org/members.go b/routers/org/members.go index 053bd21f5e..9f13d1be3f 100644 --- a/routers/org/members.go +++ b/routers/org/members.go @@ -52,7 +52,7 @@ func Members(ctx *context.Context) { } pager := context.NewPagination(int(total), setting.UI.MembersPagingNum, page, 5) - opts.ListOptions.Page = (page - 1) * setting.UI.MembersPagingNum + opts.ListOptions.Page = page opts.ListOptions.PageSize = setting.UI.MembersPagingNum members, membersIsPublic, err := models.FindOrgMembers(&opts) if err != nil { |