]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/issues_controller.rb
Rework status search to avoid relying on the enum ids, and also to allow translations
[rails.git] / app / controllers / issues_controller.rb
index 7f455b9e9290529f6eaeaf972d0288032465c234..e79a03203dfba0a32d7cc4f07b9cb1c783e2c386 100644 (file)
@@ -31,7 +31,7 @@ class IssuesController < ApplicationController
     end
 
     if params[:status] && params[:status][0].present?
-      @issues = @issues.where(:status => params[:status][0].to_i)
+      @issues = @issues.where(:status => params[:status][0])
     end
 
     if params[:issue_type] && params[:issue_type][0].present?