|
|
|
@ -94,7 +94,7 @@ class DuplicateCourseService < ApplicationService
|
|
|
|
|
exercise = course.exercises.create!(attrs.merge(user_id: user.id))
|
|
|
|
|
|
|
|
|
|
origin_exercise.exercise_questions.find_each do |origin_question|
|
|
|
|
|
question_attrs = origin_question.as_json(only: %i[question_title question_type question_number question_score shixun_name shixun_id])
|
|
|
|
|
question_attrs = origin_question.as_json(only: %i[question_title question_type question_number question_score shixun_name shixun_id is_ordered level])
|
|
|
|
|
# question_attrs[:question_type] ||= 1
|
|
|
|
|
question = exercise.exercise_questions.create!(question_attrs)
|
|
|
|
|
|
|
|
|
|