diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5e298d0b8..87e6d4b9d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -460,7 +460,7 @@ class ApplicationController < ActionController::Base def model_index_render(object, params) offset = 0 - per_page = 1000 + per_page = 500 if params[:page] && params[:per_page] offset = (params[:page].to_i - 1) * params[:per_page].to_i limit = params[:per_page].to_i diff --git a/app/controllers/organizations_controller.rb b/app/controllers/organizations_controller.rb index ea593bb20..2e04e819c 100644 --- a/app/controllers/organizations_controller.rb +++ b/app/controllers/organizations_controller.rb @@ -48,7 +48,7 @@ curl http://localhost/api/v1/organizations -v -u #{login}:#{password} def index offset = 0 - per_page = 1000 + per_page = 500 if params[:page] && params[:per_page] offset = (params[:page].to_i - 1) * params[:per_page].to_i diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 92d780e66..23a12fb82 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -14,7 +14,7 @@ class UsersController < ApplicationController # @response_message 401 Invalid session. def index offset = 0 - per_page = 1000 + per_page = 500 if params[:page] && params[:per_page] offset = (params[:page].to_i - 1) * params[:per_page].to_i per_page = params[:per_page].to_i