Commit ed69eb7f062f1d6ad6514a8542ed73ae4b58e87d

Authored by Rafael Martins
1 parent 624d2359

Fix for search views forgetting facets when a new query was sent

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
app/views/search/_search_form.rhtml
... ... @@ -4,6 +4,13 @@
4 4 :method => 'get', :class => 'search_form' ) do %>
5 5  
6 6 <%= hidden_field_tag :display, params[:display] %>
  7 +
  8 + <% CGI::unescape(request.request_uri).split("&").each do |part| %>
  9 + <% if part.start_with? "facet" %>
  10 + <% name_value = part.split("=") %>
  11 + <%= hidden_field_tag name_value[0], name_value[1] %>
  12 + <% end %>
  13 + <% end %>
7 14  
8 15 <div class="search-field">
9 16 <span class="formfield">
... ...