mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:00:54 +00:00
Merge pull request #957 from athurg/patch-2
Fix paginator attributes cannot be modified bug
This commit is contained in:
commit
ab99d5f1e2
@ -21,6 +21,6 @@ import (
|
||||
// Instantiates a Paginator and assigns it to context.Input.Data["paginator"].
|
||||
func SetPaginator(context *context.Context, per int, nums int64) (paginator *Paginator) {
|
||||
paginator = NewPaginator(context.Request, per, nums)
|
||||
context.Input.Data["paginator"] = paginator
|
||||
context.Input.Data["paginator"] = &paginator
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user