users_controller.rb: removed useless Ticket.search from def search
The Ticket.search block was accidentally copypasted here in
cf16264940
and serves no purpose; its return
value isn't actually used anywhere afterwards.
This commit is contained in:
parent
296f37ef23
commit
8f30c37ddf
1 changed files with 0 additions and 9 deletions
|
@ -383,15 +383,6 @@ class UsersController < ApplicationController
|
||||||
query = query.permit!.to_h
|
query = query.permit!.to_h
|
||||||
end
|
end
|
||||||
|
|
||||||
# build result list
|
|
||||||
tickets = Ticket.search(
|
|
||||||
query: query,
|
|
||||||
condition: params[:condition].to_h,
|
|
||||||
limit: per_page,
|
|
||||||
offset: offset,
|
|
||||||
current_user: current_user,
|
|
||||||
)
|
|
||||||
|
|
||||||
query = params[:query] || params[:term]
|
query = params[:query] || params[:term]
|
||||||
if query.respond_to?(:permit!)
|
if query.respond_to?(:permit!)
|
||||||
query = query.permit!.to_h
|
query = query.permit!.to_h
|
||||||
|
|
Loading…
Reference in a new issue