From e571a009ed93ff7e71c12bfd800ec3d0979af12a Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 15 Jan 2020 16:06:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=8D=B7=E5=8A=A0=E5=85=A5=E9=A2=98?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/exercises_controller.rb | 3 ++- app/controllers/question_banks_controller.rb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/exercises_controller.rb b/app/controllers/exercises_controller.rb index 44bfcf03f..193ef857b 100644 --- a/app/controllers/exercises_controller.rb +++ b/app/controllers/exercises_controller.rb @@ -316,7 +316,8 @@ class ExercisesController < ApplicationController :question_number => q.question_number, :question_score => q.question_score, :shixun_id => q.shixun_id, - :shixun_name => q.shixun_name + :shixun_name => q.shixun_name, + :is_ordered => q.is_ordered } exercise_bank_question = current_ex_bank.exercise_bank_questions.new option exercise_bank_question.save! diff --git a/app/controllers/question_banks_controller.rb b/app/controllers/question_banks_controller.rb index 5183c7a96..bcb88ad85 100644 --- a/app/controllers/question_banks_controller.rb +++ b/app/controllers/question_banks_controller.rb @@ -259,7 +259,8 @@ class QuestionBanksController < ApplicationController :question_number => q.question_number, :question_score => q.question_score, :shixun_name => q.shixun_name, - :shixun_id => q.shixun_id + :shixun_id => q.shixun_id, + :is_ordered => q.is_ordered } exercise_question = new_exercise.exercise_questions.new option # question_type:5实训题;其他是非实训题