Skip to content

Bugfix/remove shuffle#135

Closed
simonhamp wants to merge 2 commits into
statamic:masterfrom
simonhamp:bugfix/remove-shuffle
Closed

Bugfix/remove shuffle#135
simonhamp wants to merge 2 commits into
statamic:masterfrom
simonhamp:bugfix/remove-shuffle

Conversation

@simonhamp

Copy link
Copy Markdown
Contributor

The shuffle function seems to cause index pages of paginated collections to randomly take the view of one of the later pages in the resultset.

It probably needs further digging to understand why the wrong page is being substituted, but simply removing the shuffle seems to solve it for now.

@jesseleite

Copy link
Copy Markdown
Contributor

Thanks for the PR! That shuffle() though, was very intentional for reasons mentioned in #57.

We're also thinking that removing the shuffle only fixed this for you coincidentally, and that if there's a problem with a view leaking from one page to another, there's likely a more intentional fix required. Worth looking into, but going to close this one for now.

Feel free to create an issue with steps to reproduce, or even a example repo, if possible ❤️

@jesseleite jesseleite closed this Jul 11, 2023
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