|
|
@ -1597,7 +1597,7 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
att = attachment.copy
|
|
|
|
att = attachment.copy
|
|
|
|
att.author_id = homework_bank.user_id
|
|
|
|
att.author_id = homework_bank.user_id
|
|
|
|
att.copy_from = attachment.id
|
|
|
|
att.copy_from = attachment.id
|
|
|
|
att.attachtype = attachment.attachtype
|
|
|
|
att.attachtype = attachment.attachtype || 1
|
|
|
|
homework_bank.attachments << att
|
|
|
|
homework_bank.attachments << att
|
|
|
|
end
|
|
|
|
end
|
|
|
|
homework_bank
|
|
|
|
homework_bank
|
|
|
|