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

Using Pagerfanta (records) with Twig's |filter and Bolt's |order breaks #2601

Closed
I-Valchev opened this issue May 31, 2021 · 0 comments · Fixed by #2603
Closed

Using Pagerfanta (records) with Twig's |filter and Bolt's |order breaks #2601

I-Valchev opened this issue May 31, 2021 · 0 comments · Fixed by #2603
Labels
🐛 tag: bug This is a bug.

Comments

@I-Valchev
Copy link
Member

Something like this:

{% set records = 'showcases' limit 500 %}

{% set pages = records|filter(p => p.id > 50)|order('-priority') %}

^ The pages will be an iterator of iterators (or something..) and it won't work in the for loop correctly. We need to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 tag: bug This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant