diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 8e43c8250bb..49f64fd07f5 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -271,7 +271,7 @@ def paginate_list # Sets the number of users to display per page based on the 'per_page' parameter from the request. # If no 'per_page' parameter is provided, it defaults to '2', which corresponds to displaying 50 users on one page. - @per_page = params[:per_page] || '2' + @per_page = params[:per_page] || 25 # search for corresponding users # users = User.search_users(role, user_id, letter, @search_by) diff --git a/app/views/users/list.html.erb b/app/views/users/list.html.erb index 4a91afbf0bc..6b7e351bf9c 100644 --- a/app/views/users/list.html.erb +++ b/app/views/users/list.html.erb @@ -13,7 +13,7 @@ <%= submit_tag("Search") %> <%= label_tag :per_page, 'Users per page: ' %> - <%= select_tag(:per_page, options_for_select(@pagination_options, selected: params[:per_page] || '25'), onchange: 'this.form.submit()') %> + <%= select_tag(:per_page, options_for_select(@pagination_options, selected: params[:per_page] || 25), onchange: 'this.form.submit()') %> <% end %>