Browse Source

Fix missing/wrong age mappings

pull/2702/head
Kat 2 years ago committed by Kat
parent
commit
0d0e96254d
  1. 1
      app/models/form/sales/questions/age1.rb
  2. 1
      app/models/form/sales/questions/buyer1_age_known.rb
  3. 2
      config/locales/forms/2024/sales/household_characteristics.en.yml

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

@ -4,6 +4,7 @@ class Form::Sales::Questions::Age1 < ::Form::Question
@id = "age1" @id = "age1"
@type = "numeric" @type = "numeric"
@width = 2 @width = 2
@copy_key = "sales.household_characteristics.age1.age1"
@inferred_check_answers_value = [ @inferred_check_answers_value = [
{ {
"condition" => { "age1_known" => 1 }, "condition" => { "age1_known" => 1 },

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

@ -3,6 +3,7 @@ class Form::Sales::Questions::Buyer1AgeKnown < ::Form::Question
super super
@id = "age1_known" @id = "age1_known"
@type = "radio" @type = "radio"
@copy_key = "sales.household_characteristics.age1.age1_known"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@conditional_for = { @conditional_for = {
"age1" => [0], "age1" => [0],

2
config/locales/forms/2024/sales/household_characteristics.en.yml

@ -106,7 +106,7 @@ en:
check_answer_label: "Person 2’s age known?" check_answer_label: "Person 2’s age known?"
hint_text: "" hint_text: ""
question_text: "Do you know person 2’s age?" question_text: "Do you know person 2’s age?"
age: age2:
check_answer_label: "Person 2’s age" check_answer_label: "Person 2’s age"
hint_text: "" hint_text: ""
question_text: "Age" question_text: "Age"

Loading…
Cancel
Save