diff --git a/app/controllers/admin/property_hires_controller.rb b/app/controllers/admin/property_hires_controller.rb index f16c3e9..901c9b5 100644 --- a/app/controllers/admin/property_hires_controller.rb +++ b/app/controllers/admin/property_hires_controller.rb @@ -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"]