diff --git a/app/controllers/admin/property_hires_controller.rb b/app/controllers/admin/property_hires_controller.rb index 8fbd0ee..40a1736 100644 --- a/app/controllers/admin/property_hires_controller.rb +++ b/app/controllers/admin/property_hires_controller.rb @@ -183,6 +183,7 @@ class Admin::PropertyHiresController < OrbitAdminController prop = params.require(:property).permit! prop.delete(:property_location) if prop[:property_location] == "other" notes_selector = prop["notes_selector"] + notes_selector = {} if notes_selector.nil? prop["notes_selector"] = (0 ... notes_selector.keys.count).to_a.map{|k| k.to_s}.zip(notes_selector.values).to_h return prop end