This commit is contained in:
BoHung Chiu 2023-08-15 21:52:43 +08:00
parent f8e8653c5c
commit c3eb6f7ac8
1 changed files with 3 additions and 0 deletions

View File

@ -278,6 +278,9 @@ class Admin::PropertyHiresController < OrbitAdminController
if prop[:weekdays].nil? if prop[:weekdays].nil?
prop[:weekdays] = [] prop[:weekdays] = []
end end
if prop[:owners].nil?
prop[:owners] = nil
end
prop.delete(:property_location) if prop[:property_location] == "other" prop.delete(:property_location) if prop[:property_location] == "other"
notes_selector = prop["notes_selector"] notes_selector = prop["notes_selector"]
notes_selector = {} if notes_selector.nil? notes_selector = {} if notes_selector.nil?