diff --git a/app/models/form/lettings/questions/address_line1.rb b/app/models/form/lettings/questions/address_line1.rb index ef197e4fd..024dc09fe 100644 --- a/app/models/form/lettings/questions/address_line1.rb +++ b/app/models/form/lettings/questions/address_line1.rb @@ -6,7 +6,7 @@ class Form::Lettings::Questions::AddressLine1 < ::Form::Question @header = "Address line 1" @type = "text" @plain_label = true - @check_answer_label = "Q12 - Address" + @check_answer_label = "Q12 - Address lines 1 and 2" @disable_clearing_if_not_routed_or_dynamic_answer_options = true end @@ -14,17 +14,6 @@ class Form::Lettings::Questions::AddressLine1 < ::Form::Question [ log.address_line1, log.address_line2, - log.postcode_full, - log.town_or_city, - log.county, ].select(&:present?).join("\n") end - - def get_extra_check_answer_value(log) - return unless log.is_la_inferred? - - la = LocalAuthority.find_by(code: log.la)&.name - - la.presence - end end diff --git a/app/models/form/lettings/questions/county.rb b/app/models/form/lettings/questions/county.rb index 9f0dc7138..6e1a92426 100644 --- a/app/models/form/lettings/questions/county.rb +++ b/app/models/form/lettings/questions/county.rb @@ -5,10 +5,7 @@ class Form::Lettings::Questions::County < ::Form::Question @header = "County (optional)" @type = "text" @plain_label = true + @check_answer_label = "Q12 - County" @disable_clearing_if_not_routed_or_dynamic_answer_options = true end - - def hidden_in_check_answers?(_log = nil, _current_user = nil) - true - end end diff --git a/app/models/form/lettings/questions/postcode_for_full_address.rb b/app/models/form/lettings/questions/postcode_for_full_address.rb index 4f41867d7..02be46f0d 100644 --- a/app/models/form/lettings/questions/postcode_for_full_address.rb +++ b/app/models/form/lettings/questions/postcode_for_full_address.rb @@ -17,10 +17,7 @@ class Form::Lettings::Questions::PostcodeForFullAddress < ::Form::Question }, } @plain_label = true + @check_answer_label = "Q12 - Postcode" @disable_clearing_if_not_routed_or_dynamic_answer_options = true end - - def hidden_in_check_answers?(_log = nil, _current_user = nil) - true - end end diff --git a/app/models/form/lettings/questions/town_or_city.rb b/app/models/form/lettings/questions/town_or_city.rb index 501e9bec4..fe1c0f70d 100644 --- a/app/models/form/lettings/questions/town_or_city.rb +++ b/app/models/form/lettings/questions/town_or_city.rb @@ -5,10 +5,7 @@ class Form::Lettings::Questions::TownOrCity < ::Form::Question @header = "Town or city" @type = "text" @plain_label = true + @check_answer_label = "Q12 - Town or city" @disable_clearing_if_not_routed_or_dynamic_answer_options = true end - - def hidden_in_check_answers?(_log = nil, _current_user = nil) - true - end end