Skip to content

Commit

Permalink
Merge pull request #453 from alphagov/allocate-parameters
Browse files Browse the repository at this point in the history
User parameters converted from the Filter
  • Loading branch information
pmanrubia authored Dec 18, 2017
2 parents 046830a + 767d439 commit 677e7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/filter_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module FilterHelper
def filter_to_hidden_fields
hidden_fields = params_to_filter.to_h.each_with_object([]) do |(key, value), fields|
hidden_fields = filter_params.to_h.each_with_object([]) do |(key, value), fields|
if value.is_a?(Array)
value.each do |array_element|
fields << hidden_field_tag("#{key}[]", array_element)
Expand Down

0 comments on commit 677e7c8

Please sign in to comment.