Fixed issue #1753 - Ticket search fails for limit exceeding 100 with internal server error.

This commit is contained in:
Thorsten Eckel 2018-01-16 15:45:09 +01:00
parent 5f3f2e4e45
commit 2a71c6104b
3 changed files with 3 additions and 3 deletions

View file

@ -235,7 +235,7 @@ curl http://localhost/api/v1/organization/{id} -v -u #{login}:#{password} -H "Co
end
if params[:limit] && params[:limit].to_i > 500
params[:limit].to_i = 500
params[:limit] = 500
end
query = params[:query]

View file

@ -400,7 +400,7 @@ class TicketsController < ApplicationController
end
if params[:limit] && params[:limit].to_i > 100
params[:limit].to_i = 100
params[:limit] = 100
end
query = params[:query]

View file

@ -386,7 +386,7 @@ class UsersController < ApplicationController
end
if params[:limit] && params[:limit].to_i > 500
params[:limit].to_i = 500
params[:limit] = 500
end
query = params[:query]