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

Fix value of desc param in filter form (1 instead of "True") #2265

Merged

Conversation

ibushong
Copy link
Contributor

Fixes #1761

"hardcoding" 1 might seem bad, but since it's within the if sort_desc conditional, it should be fine. Though it could be replaced by something like {{ 1 if sort_desc else 0 }} for extra robustness.

Copy link
Contributor

@samuelhwilliams samuelhwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works - thanks for the fix! 👍

@samuelhwilliams samuelhwilliams merged commit 66dbf72 into pallets-eco:master Jul 13, 2024
6 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

desc query string arg incorrectly preserved when setting filters
2 participants