|
|
|
@ -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
|
|
|
|
|