Fix bug.
This commit is contained in:
parent
f8e8653c5c
commit
c3eb6f7ac8
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue