Fixed issue #1753 - Ticket search fails for limit exceeding 100 with internal server error.
This commit is contained in:
parent
5f3f2e4e45
commit
2a71c6104b
3 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue