X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/effb1b7f4170bb7244c4dfffcbe6134fe00e2bc4..3276063fcfba982b7bbb886f5ef18d7ae67c46f5:/app/controllers/issues_controller.rb diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index e156ea004..edf8f1121 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -8,8 +8,6 @@ class IssuesController < ApplicationController before_action :find_issue, :only => [:show, :resolve, :reopen, :ignore] before_action :setup_user_role, :only => [:show, :index] - helper_method :sort_column, :sort_direction - def index if current_user.moderator? @issue_types = @moderator_issues @@ -19,7 +17,7 @@ class IssuesController < ApplicationController @users = User.joins(:roles).where(:user_roles => { :role => "administrator" }) end - @issues = Issue.where(:issue_type => @user_role).order(sort_column + " " + sort_direction) + @issues = Issue.where(:issue_type => @user_role) # If search if params[:search_by_user] && params[:search_by_user].present?