Skip to content

Conversation

@mjauvin
Copy link
Member

@mjauvin mjauvin commented Apr 28, 2024

Arguments order is different in winter storm for paginate & simplePaginate.

Adding showPageNumber to the RelationController config revealed an old bug with the simplePaginate arguments order.

Fixes wintercms/winter#1110

@mjauvin mjauvin added this to the 1.2.7 milestone Apr 28, 2024
@mjauvin mjauvin requested a review from LukeTowers April 28, 2024 13:03
@mjauvin mjauvin self-assigned this Apr 28, 2024
@mjauvin
Copy link
Member Author

mjauvin commented Apr 28, 2024

@goldmont can you test this fix for your issue with the RelationController ?

@mjauvin mjauvin changed the title simplePaginate must comply with winter storm pagination simplePaginate arguments order fix Apr 28, 2024
@goldmont
Copy link

@goldmont can you test this fix for your issue with the RelationController ?

Hi,

It works!

@LukeTowers LukeTowers merged commit 9e9c3a5 into develop Apr 30, 2024
@LukeTowers LukeTowers changed the title simplePaginate arguments order fix Fix paginate & simplePaginate for BelongsToOrMorpsMany Relationships Apr 30, 2024
@LukeTowers LukeTowers deleted the fix-simplepaginate branch April 30, 2024 03:27
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.

Winter\Storm\Database\Relations\BelongsToMany::shouldSelect(): Argument #1 ($columns) must be of type array, int given

4 participants