@ -1597,7 +1597,7 @@ class HomeworkCommonsController < ApplicationController
att = attachment.copy
att.author_id = homework_bank.user_id
att.copy_from = attachment.id
att.attachtype = attachment.attachtype
att.attachtype = attachment.attachtype || 1
homework_bank.attachments << att
end
homework_bank
@ -154,7 +154,7 @@ class QuestionBanksController < ApplicationController
att.container_id = nil
att.container_type = nil
att.author_id = homework.user_id
# att.attachtype = 1
att.save!