Skip to content

Commit

Permalink
fix pagination for i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
sg3des authored Jun 17, 2018
1 parent 05c1410 commit 7252e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ func (i18n *I18n) ConfigureQorResource(res resource.Resourcer) {
}

if pagination.CurrentPage > 0 {
pagination.Pages = pagination.Total / pagination.PerPage
pagination.Pages = pagination.Total/pagination.PerPage + 1
}

context.Searcher.Pagination = pagination
Expand Down

0 comments on commit 7252e62

Please sign in to comment.