]> git.openstreetmap.org Git - rails.git/commitdiff
Avoid sending a commit value from from the search button
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 21 Mar 2018 09:36:00 +0000 (17:36 +0800)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 28 Mar 2018 03:05:46 +0000 (11:05 +0800)
app/views/issues/index.html.erb

index 2a3e1959f2d99035430c78f10b6ffc1d17f9b47a..a734b15e67102fbf01964aebcfe2611d674b689f 100644 (file)
@@ -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' } %>
 <%= 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 %>
 <br/>
 
 <% end %>
 <br/>