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:
Thorsten Eckel 2019-03-27 08:34:56 +01:00
parent 296f37ef23
commit 8f30c37ddf

View file

@ -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