课堂复制问题

dev_hjm
jingquan huang 6 years ago
parent fcb2b1c9b1
commit 43f6b0f603

@ -130,7 +130,7 @@ class DuplicateCourseService < ApplicationService
def copy_attachments!
origin_course.attachments.each do |origin_attachment|
attachment = origin_attachment.copy
attachment.tag_list.add(origin_attachment.tag_list) # tag关联
# attachment.tag_list.add(origin_attachment.tag_list) # tag关联
attachment.container = course
attachment.created_on = Time.now
attachment.publish_time = nil

Loading…
Cancel
Save