Browse Source

Fix answer options so they match validations

pull/181/head
baarkerlounger 4 years ago
parent
commit
0ddf029745
  1. 2
      app/views/form/_select_question.html.erb
  2. 1388
      config/forms/2021_2022.json

2
app/views/form/_select_question.html.erb

@ -1,4 +1,4 @@
<%= answers = question.answer_options.map { |key, value| OpenStruct.new(id: key == "select" ? "" : value, name: value) }
<%= answers = question.answer_options.map { |key, value| OpenStruct.new(id: key, name: value) }
f.govuk_collection_select question.id.to_sym,
answers,
:id,

1388
config/forms/2021_2022.json

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save