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

Sorting breaks when $resources isn't an instance of ResourceGridView #261

Open
LeanderFS opened this issue Jan 18, 2021 · 0 comments
Open

Comments

@LeanderFS
Copy link

Sylius version affected: 1.8.5

Description
When creating a filtered list using the methods described on the documentation page, the sorting breaks because the returned class is an instance of PagerFanta\PagerFanta, which doesn't have a data key as required on line 1 of _sorting.html.twig

Steps to reproduce

  1. Create a list using the methods described in the documentation
  2. Try to visit the page

Possible Solution
Not a possible solution, but the problem seems to be that resources.data does not exists when $resources is an instance of PagerFanta.

@LeanderFS LeanderFS changed the title Sorting breaks when resources isn't an instance of ResourceGridView Sorting breaks when $resources isn't an instance of ResourceGridView Jan 18, 2021
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

No branches or pull requests

1 participant