From 9e670ae11feacf1be1a620ffe3f9aa2cb2f318af Mon Sep 17 00:00:00 2001 From: chiu Date: Sun, 26 Jul 2020 15:54:19 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/property_hires_controller.rb | 1 + 1 file changed, 1 insertion(+) 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