|
|
|
@ -180,6 +180,8 @@ class FilesController < ApplicationController
|
|
|
|
|
attach_copied_obj.created_on = Time.now
|
|
|
|
|
attach_copied_obj.author = current_user
|
|
|
|
|
attach_copied_obj.is_public = 0
|
|
|
|
|
attach_copied_obj.is_publish = 1
|
|
|
|
|
attach_copied_obj.publish_time = Time.now
|
|
|
|
|
attach_copied_obj.course_second_category_id = course_second_category_id
|
|
|
|
|
attach_copied_obj.copy_from = ori.copy_from.nil? ? ori.id : ori.copy_from
|
|
|
|
|
if attach_copied_obj.attachtype == nil
|
|
|
|
|