Browse Source

Readd removed answer options

pull/2702/head
Kat 2 years ago committed by Kat
parent
commit
c07318c17f
  1. 1
      app/models/form/sales/questions/person_age_known.rb

1
app/models/form/sales/questions/person_age_known.rb

@ -2,6 +2,7 @@ class Form::Sales::Questions::PersonAgeKnown < ::Form::Question
def initialize(id, hsh, page, person_index:) def initialize(id, hsh, page, person_index:)
super(id, hsh, page) super(id, hsh, page)
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS
@copy_key = person_index == 2 ? "sales.household_characteristics.age2.person.age2_known" : "sales.household_characteristics.age#{person_index}.age#{person_index}_known" @copy_key = person_index == 2 ? "sales.household_characteristics.age2.person.age2_known" : "sales.household_characteristics.age#{person_index}.age#{person_index}_known"
@conditional_for = { @conditional_for = {
"age#{person_index}" => [0], "age#{person_index}" => [0],

Loading…
Cancel
Save