Skip to content

Commit

Permalink
filterview primarykey
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Apr 13, 2022
1 parent 86abb98 commit 9f0e9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viewfn/filterview.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func (fv *FilterView) Prepare(r *evo.Request) bool {
if fv.EnableDebug {
db = db.Debug()
}
if fv.PickerMode && r.Query("pk") != "" {
if !fv.PickerMode && r.Query("pk") == "" {
row := db.Raw(limitQuery).Row()
row.Scan(&fv.Pagination.Records)
fv.Pagination.Pages = (fv.Pagination.Records / fv.Pagination.Limit) + 1
Expand Down

0 comments on commit 9f0e9c2

Please sign in to comment.