aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/preview.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/request/preview.html.erb')
-rw-r--r--app/views/request/preview.html.erb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/request/preview.html.erb b/app/views/request/preview.html.erb
index a5c9a8a60..0265d0328 100644
--- a/app/views/request/preview.html.erb
+++ b/app/views/request/preview.html.erb
@@ -41,7 +41,13 @@
<p>
<%= f.hidden_field(:title) %>
- <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
+ <% if @batch %>
+ <% params[:public_body_ids].each do |public_body_id| %>
+ <%= hidden_field_tag("public_body_ids[]", public_body_id)%>
+ <% end %>
+ <% else %>
+ <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
+ <% end %>
<%= f.hidden_field(:tag_string) %>
<%= hidden_field_tag(:submitted_new_request, 1) %>
<%= hidden_field_tag(:preview, 0 ) %>