This commit is contained in:
邱博亞 2024-05-14 13:00:42 +08:00
parent 0267a0140f
commit ef0682eb37
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ class Admin::PropertyHiresController < OrbitAdminController
property.p_hire_fields.each{|t| t.destroy if t["to_delete"] == true}
else
property.update_attributes(@property_params)
email = MemberProfile.where(:id.in=>property.owners).collect{|v| v.email}
email = MemberProfile.where(:id.in=>property.owners.to_a).collect{|v| v.email}
Admin::PropertyHiresHelper::HireMethod.send_mail('edit',email,property.id,nil,nil,current_user.id)
end
redirect_to params[:referer_url]
@ -287,7 +287,7 @@ class Admin::PropertyHiresController < OrbitAdminController
prop[:weekdays] = []
end
if prop[:owners].nil?
prop[:owners] = nil
prop[:owners] = []
end
prop.delete(:property_location) if prop[:property_location] == "other"
notes_selector = prop["notes_selector"]