|
|
|
@ -3,7 +3,7 @@ |
|
|
|
class Form::Sales::Pages::PersonSexRegisteredAtBirth < ::Form::Page |
|
|
|
class Form::Sales::Pages::PersonSexRegisteredAtBirth < ::Form::Page |
|
|
|
def initialize(id, hsh, subsection, person_index:) |
|
|
|
def initialize(id, hsh, subsection, person_index:) |
|
|
|
super(id, hsh, subsection) |
|
|
|
super(id, hsh, subsection) |
|
|
|
@copy_key = "sales.household_characteristics.sex2.person" if person_index == 2 |
|
|
|
@copy_key = "sales.household_characteristics.sexRAB2.person" if person_index == 2 |
|
|
|
@person_index = person_index |
|
|
|
@person_index = person_index |
|
|
|
@depends_on = [ |
|
|
|
@depends_on = [ |
|
|
|
{ "details_known_#{person_index}" => 1 }, |
|
|
|
{ "details_known_#{person_index}" => 1 }, |
|
|
|
|