From ec416ba374b5319f3b1f3f0ae1c64681980d0c6f Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 6 May 2019 14:44:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E9=94=80=E5=8F=91=E5=B8=83=E7=9A=84?= =?UTF-8?q?=E8=AF=95=E5=8D=B7=E8=A6=81=E5=88=A0=E9=99=A4=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=E5=81=9A=E8=BF=87=E7=9A=84=E9=A2=98=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/exercise_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/exercise_controller.rb b/app/controllers/exercise_controller.rb index 07234e17..3dae6420 100644 --- a/app/controllers/exercise_controller.rb +++ b/app/controllers/exercise_controller.rb @@ -728,6 +728,7 @@ class ExerciseController < ApplicationController ExerciseShixunAnswer.where(:exercise_question_id => @exercise.exercise_questions.pluck(:id)).destroy_all @exercise.update_attributes(:exercise_status => 1, :publish_time => nil, :end_time => nil, :unified_setting => 1) @exercise.exercise_group_settings.destroy_all + @exercise.exercise_user_questions.destroy_all @exercise.course_acts.destroy_all @exercise.tidings.destroy_all create_exercises_list @exercise