From 80cdbd6ad357ce60e8e15c52350e26236d802f4b Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 4 Apr 2019 17:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 733cd1fb..31e42f05 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -1257,7 +1257,7 @@ end customer = Customer.where(id: params[:customer]).first @current_partner = customer.partner customer.school.update_attributes(:customer_id => nil) - customer.destroy if customer && @current_partner + customer.destroy end end