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 paging when Skip == 1 #255

Merged
merged 1 commit into from
Oct 20, 2021
Merged

Conversation

matthewcare
Copy link
Contributor

When Skip == 1, the Take value would be one less than expected.
I've added tests to verify, and all existing tests pass

Fixes umbraco/Umbraco-CMS#11377

When Skip == 1, take would always be off by a 1
Added tests
@Shazwazza
Copy link
Owner

This is great thanks!

@Shazwazza Shazwazza merged commit e02ab46 into Shazwazza:dev Oct 20, 2021
@Shazwazza Shazwazza added the bug label Oct 20, 2021
@Shazwazza Shazwazza added this to the 2.0.1 milestone Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Published Content Query with skip > 0 returns incorrect results
2 participants