Skip to content
Browse files

Passing along sort and per_page params in email form so that email ex…

…port gets proper docs and sorted correctly.
  • Loading branch information...
1 parent 06651b6 commit de6ac738804554b5e343bef5a8a1bef0d68e7568 @jkeck jkeck committed Apr 24, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 app/views/catalog/_email_form.html.erb
View
6 app/views/catalog/_email_form.html.erb
@@ -7,5 +7,11 @@
<% @documents.each do |doc| %>
<%=hidden_field_tag "id[]", doc.get(:id)%>
<% end %>
+ <%- if params[:sort] -%>
+ <%= hidden_field_tag "sort", params[:sort] %>
+ <%- end -%>
+ <%- if params[:per_page] -%>
+ <%= hidden_field_tag "per_page", params[:per_page] %>
+ <%- end -%>
<%= submit_tag "Send" %>
<% end %>

0 comments on commit de6ac73

Please sign in to comment.
Something went wrong with that request. Please try again.