X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2a1689f9621b7ec94e4935ea11fe64a45390ef7d..f65593651f17f1bb2caa6a757ca377c094ea7a02:/app/controllers/issues_controller.rb diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 88c7a46ac..c24054f77 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -24,7 +24,7 @@ class IssuesController < ApplicationController if params[:search_by_user].present? @find_user = User.find_by(:display_name => params[:search_by_user]) if @find_user - @issues = @issues.where(:reported_user_id => @find_user.id) + @issues = @issues.where(:reported_user => @find_user) else @issues = @issues.none flash.now[:warning] = t(".user_not_found")