dev_local
cxt 6 years ago
parent 2e3c438d79
commit 80cdbd6ad3

@ -1257,7 +1257,7 @@ end
customer = Customer.where(id: params[:customer]).first customer = Customer.where(id: params[:customer]).first
@current_partner = customer.partner @current_partner = customer.partner
customer.school.update_attributes(:customer_id => nil) customer.school.update_attributes(:customer_id => nil)
customer.destroy if customer && @current_partner customer.destroy
end end
end end

Loading…
Cancel
Save