mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-16 15:02:43 +00:00
fix #1876
This commit is contained in:
parent
1b5e1bebc2
commit
00eb2b221f
3 changed files with 5 additions and 4 deletions
|
@ -124,7 +124,8 @@ func Issues(ctx *middleware.Context) {
|
|||
} else {
|
||||
total = int(issueStats.ClosedCount)
|
||||
}
|
||||
ctx.Data["Page"] = paginater.New(total, setting.IssuePagingNum, page, 5)
|
||||
pager := paginater.New(total, setting.IssuePagingNum, page, 5)
|
||||
ctx.Data["Page"] = pager
|
||||
|
||||
// Get issues.
|
||||
issues, err := models.Issues(&models.IssuesOptions{
|
||||
|
@ -133,7 +134,7 @@ func Issues(ctx *middleware.Context) {
|
|||
RepoID: repo.ID,
|
||||
PosterID: posterID,
|
||||
MilestoneID: milestoneID,
|
||||
Page: page,
|
||||
Page: pager.Current(),
|
||||
IsClosed: isShowClosed,
|
||||
IsMention: filterMode == models.FM_MENTION,
|
||||
IsPull: isPullList,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue