Browse Source

Fix select question lint regression

pull/485/head
baarkerlounger 3 years ago
parent
commit
f28fe2d4d2
  1. 2
      app/views/form/_select_question.html.erb

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

@ -1,7 +1,7 @@
<%= render partial: "form/guidance/#{question.guidance_partial}" if question.guidance_partial %> <%= render partial: "form/guidance/#{question.guidance_partial}" if question.guidance_partial %>
<% selected = @case_log.public_send(question.id) || "" %> <% selected = @case_log.public_send(question.id) || "" %>
<%= answers = question.displayed_answer_options.map { |key, value| OpenStruct.new(id: key, name: value) } %> <% answers = question.displayed_answer_options.map { |key, value| OpenStruct.new(id: key, name: value) } %>
<%= f.govuk_collection_select question.id.to_sym, <%= f.govuk_collection_select question.id.to_sym,
answers, answers,
:id, :id,

Loading…
Cancel
Save