diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 7a8e6495..a0aa01bc 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -1356,6 +1356,7 @@ end after_dep = Department.where(:school_id => params[:school_id], :name => department.name).first if after_dep UserExtensions.where(:school_id => params[:applied_id], :department_id => department.id).update_all(:department_id => after_dep.id) + department.apply_add_departments.destroy_all department.destroy else department.apply_add_departments.update_all(:school_id => params[:school_id])