This commit is contained in:
邱博亞 2024-05-14 12:44:28 +08:00
parent 1a9da6eec0
commit 0267a0140f
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class Admin::PropertyHiresController < OrbitAdminController
def destroy
property = Property.find(params[:id]) rescue nil
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('delete',email,property.id,nil,nil,current_user.id)
property.destroy if !property.nil?
if params[:page]