Skip to content

Conversation

haddowg
Copy link
Contributor

@haddowg haddowg commented Oct 29, 2024

The laravel cursor parameter function throws an exception if the requested key is not present in the cursors' parameters.
However, when using withoutKeySort() on your CursorPaginator the key will not be there and we should ignore its absence.

@lindyhopchris
Copy link
Contributor

Thanks for the PR. Any chance of a test that recreates the scenario?

@lindyhopchris lindyhopchris self-requested a review October 31, 2024 10:42
@haddowg
Copy link
Contributor Author

haddowg commented Oct 31, 2024

Thanks for the PR. Any chance of a test that recreates the scenario?

done

@lindyhopchris lindyhopchris merged commit 30f153f into laravel-json-api:develop Oct 31, 2024
2 checks passed
@lindyhopchris
Copy link
Contributor

Thanks! Released in 4.3.1.

@haddowg haddowg deleted the fix/cursor-parser branch December 2, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants