From: Andy Allan Date: Wed, 21 Mar 2018 09:36:00 +0000 (+0800) Subject: Avoid sending a commit value from from the search button X-Git-Tag: live~2981^2~14 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c71fd544e0b33246dfcc677ec830efc2031d419e?hp=918a382cad0cf9f8cbf2a47359d48773065c88f6;ds=sidebyside Avoid sending a commit value from from the search button --- diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 2a3e1959f..a734b15e6 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -8,7 +8,7 @@ <%= select :issue_type, nil, options_for_select(@issue_types, params[:issue_type]), { :include_blank => t(".select_type")}, data: { behavior: 'category_dropdown' } %> <%= text_field_tag :search_by_user, params[:search_by_user], placeholder: t(".reported_user") %> <%= select :last_updated_by, nil, options_for_select(@users.all.collect{|f| [f.display_name, f.id]} << [ t(".not_updated"), "nil"], params[:last_updated_by]), { :include_blank => t(".select_last_updated_by")}, data: { behavior: 'category_dropdown' } %> -<%= submit_tag t(".search") %> +<%= submit_tag t(".search"), :name => nil %> <% end %>