|
|
@ -154,6 +154,7 @@ class QuestionBanksController < ApplicationController
|
|
|
|
att.container_id = nil
|
|
|
|
att.container_id = nil
|
|
|
|
att.container_type = nil
|
|
|
|
att.container_type = nil
|
|
|
|
att.author_id = homework.user_id
|
|
|
|
att.author_id = homework.user_id
|
|
|
|
|
|
|
|
att.attachtype = 1
|
|
|
|
att.copy_from = attachment.id
|
|
|
|
att.copy_from = attachment.id
|
|
|
|
att.save!
|
|
|
|
att.save!
|
|
|
|
new_homework.attachments << att
|
|
|
|
new_homework.attachments << att
|
|
|
|