Browse Source

temp

CLDC-4129-scheme-location-search-box-fills-by-default
Samuel Young 4 days ago
parent
commit
c6d7c19202
  1. 4
      app/models/form/lettings/questions/location_id_search.rb

4
app/models/form/lettings/questions/location_id_search.rb

@ -16,7 +16,9 @@ class Form::Lettings::Questions::LocationIdSearch < ::Form::Question
end
def answer_options
answer_opts = { "" => "Select an option" }
answer_opts = {
"" => "Select an option"
}
return answer_opts unless ActiveRecord::Base.connected?
Location.visible.started_in_2_weeks.select(:id, :postcode, :name).each_with_object(answer_opts) do |location, hsh|

Loading…
Cancel
Save