|
|
@ -14,8 +14,7 @@ class Form::Lettings::Questions::AddressSearch < ::Form::Question |
|
|
|
return {} unless ActiveRecord::Base.connected? |
|
|
|
return {} unless ActiveRecord::Base.connected? |
|
|
|
return {} unless log&.address_search_options&.any? |
|
|
|
return {} unless log&.address_search_options&.any? |
|
|
|
|
|
|
|
|
|
|
|
option = log.address_search_options.first |
|
|
|
{ log.address_search_options.first[:uprn] => { "value" => "#{log.address_search_options.first[:address]} (#{log.address_search_options.first[:uprn]})" } } |
|
|
|
{ option[:uprn] => { "value" => "#{option[:address]} (#{option[:uprn]})" } } |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def get_extra_check_answer_value(log) |
|
|
|
def get_extra_check_answer_value(log) |
|
|
|