diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 86e6ad8ad3a..6316fa0cf30 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -63,6 +63,7 @@ def set_anonymized_view
def list
letter = params[:letter]
search_by = params[:search_by]
+ @pagination_options = pagination_options
# If search parameters present
if letter.present? && search_by.present?
case search_by.to_i
@@ -259,7 +260,6 @@ def pagination_options
# For filtering the users list with proper search and pagination.
def paginate_list
paginate_options = pagination_options
-
# If the above hash does not have a value for the key,
# it means that we need to show all the users on the page
#
diff --git a/app/views/users/list.html.erb b/app/views/users/list.html.erb
index 472b1ea21b6..d89a94d5f74 100644
--- a/app/views/users/list.html.erb
+++ b/app/views/users/list.html.erb
@@ -1,19 +1,20 @@