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

[6.1-stable] Fix combining search filters and pagination #2983

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jul 30, 2024

Backport

This will backport the following commits from main to 6.1-stable:

Questions ?

Please refer to the Backport tool documentation

The `search_filter_params` method in Alchemy's Resource Controller
converts the permitted attributes to a Hash, stopping them from being
recognized as something like a nested Hash in our per page select. This
commit uses duck-typing in order to find out whether we're looking at a
nested Hash. This should work with both ActionController::Parameters and
with a Hash.

(cherry picked from commit e059c80)

# Conflicts:
#	app/views/alchemy/admin/resources/_per_page_select.html.erb
@tvdeyen tvdeyen requested a review from mamhoff July 30, 2024 15:46
@tvdeyen tvdeyen merged commit 96b9e45 into 6.1-stable Jul 31, 2024
38 checks passed
@tvdeyen tvdeyen deleted the backport/6.1-stable/pr-2978 branch July 31, 2024 13:16
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