diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 32a2c6ef9..89a0d524f 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -635,7 +635,7 @@ class ShixunsController < ApplicationController end page = params[:page] || 1 limit = params[:limit] || 20 - @users_count = @users.count + @total_count = @users.count @users = @users.page(page).per(limit) end diff --git a/app/views/shixuns/add_collaborators.json.jbuilder b/app/views/shixuns/add_collaborators.json.jbuilder index 7bac0c24c..963389933 100644 --- a/app/views/shixuns/add_collaborators.json.jbuilder +++ b/app/views/shixuns/add_collaborators.json.jbuilder @@ -1,5 +1,5 @@ #json.partial! "users/users_list", users: @users -#json.users_count @users_count +json.total_count @total_count json.array! @users do |user| json.user_id user.id json.identify user.identity