From 8f30c37ddf6f1cb92909e06c7ac27258453090e8 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 27 Mar 2019 08:34:56 +0100 Subject: [PATCH] users_controller.rb: removed useless Ticket.search from def search The Ticket.search block was accidentally copypasted here in cf1626494047f27d8fe094a7b954e04fef0f182b and serves no purpose; its return value isn't actually used anywhere afterwards. --- app/controllers/users_controller.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 91671df4b..f39a36ddb 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -383,15 +383,6 @@ class UsersController < ApplicationController query = query.permit!.to_h 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] if query.respond_to?(:permit!) query = query.permit!.to_h