From a0985a63cc4541cf6ff69cb1f7bf22b3a3cbf70b Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 23 Jul 2019 21:57:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93=E9=80=89=E7=94=A8=E9=99=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/question_banks_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/question_banks_controller.rb b/app/controllers/question_banks_controller.rb index 76600c6a2..58fa7a8d4 100644 --- a/app/controllers/question_banks_controller.rb +++ b/app/controllers/question_banks_controller.rb @@ -154,6 +154,7 @@ class QuestionBanksController < ApplicationController att.container_id = nil att.container_type = nil att.author_id = homework.user_id + att.attachtype = 1 att.copy_from = attachment.id att.save! new_homework.attachments << att