Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Query pagination. #52

Merged
merged 1 commit into from
Dec 8, 2020
Merged

Fix Query pagination. #52

merged 1 commit into from
Dec 8, 2020

Conversation

mikemiller891
Copy link
Contributor

Possible fix to issue #49 from @Zu007. The problem is caused by the return value of Query->paginate(). return $this->get()->paginate($per_page, $this->page, $page_name) would paginate the results twice. Once by the ->get() method, and again by the ->paginate() method.

@Webklex
Copy link
Owner

Webklex commented Dec 8, 2020

Hi @mikemiller891 ,
thanks for your pr! 👍

Best regards,

@Webklex Webklex merged commit 66bbb3c into Webklex:master Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants