Skip to content

Commit

Permalink
Ensure filter_adminparam is consistently passed
Browse files Browse the repository at this point in the history
- Updated the `index` action within `Paginable UsersController` to include `filter_admin` in the `query_params` for `paginable_renderise`.
- This addresses the issue where `filter_admin` was sometimes `nil` within the controller, even when it was set to '1' in the browser (#941).
  • Loading branch information
aaronskiba committed Jan 9, 2025
1 parent f31c3fe commit 2b8dd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/paginable/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def index
paginable_renderise(
partial: 'index',
scope: scope,
query_params: { sort_field: 'users.surname', sort_direction: :asc },
query_params: { sort_field: 'users.surname', sort_direction: :asc, filter_admin: params[:filter_admin] },
format: :json,
view_all: !current_user.can_super_admin?
)
Expand Down

0 comments on commit 2b8dd79

Please sign in to comment.