附件调整

dev_forum
cxt 5 years ago
parent f5bc381187
commit 1974d858ed

@ -1593,7 +1593,7 @@ class HomeworkCommonsController < ApplicationController
homework_bank.max_num = homework.homework_detail_group.max_num
homework_bank.base_on_project = homework.homework_detail_group.base_on_project
end
homework.attachments.each do |attachment|
homework.attachments.where("attachtype != 2 and attachtype is null").each do |attachment|
att = attachment.copy
att.author_id = homework_bank.user_id
att.copy_from = attachment.id

Loading…
Cancel
Save