|
|
@ -212,6 +212,11 @@ class QuestionBanksController < ApplicationController
|
|
|
|
homework_type: homework.homework_type, course_id: course.id, homework_bank_id: homework.id,
|
|
|
|
homework_type: homework.homework_type, course_id: course.id, homework_bank_id: homework.id,
|
|
|
|
reference_answer: homework.reference_answer)
|
|
|
|
reference_answer: homework.reference_answer)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if params[:category].present?
|
|
|
|
|
|
|
|
category = course.course_second_categories.find_by(id: params[:category])
|
|
|
|
|
|
|
|
new_homework.course_second_category_id = category&.id.to_i
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# 作业的基本设置复制
|
|
|
|
# 作业的基本设置复制
|
|
|
|
new_homework.homework_detail_manual = HomeworkDetailManual.new
|
|
|
|
new_homework.homework_detail_manual = HomeworkDetailManual.new
|
|
|
|
new_homework_detail_manual = new_homework.homework_detail_manual
|
|
|
|
new_homework_detail_manual = new_homework.homework_detail_manual
|
|
|
|