]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/issues_controller.rb
Merge pull request #4211 from tomhughes/changeset-comment-cleanup
[rails.git] / app / controllers / issues_controller.rb
index 88c7a46acd5f0bb3859f9e1dce567815d4328fd9..c24054f77ff3adf4ab44073cea134c9748403b51 100644 (file)
@@ -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")