From 7487bc1c0c3b951ab94d2dfb806f92ab91b4d790 Mon Sep 17 00:00:00 2001 From: jasder Date: Fri, 28 Jun 2019 15:22:03 +0800 Subject: [PATCH] =?UTF-8?q?ADD=20=E9=80=89=E7=94=A8=E7=9A=84=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E9=87=8C=E7=AB=8B=E9=A9=AC=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/files_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb index 0e00dcc66..7e150c44c 100644 --- a/app/controllers/files_controller.rb +++ b/app/controllers/files_controller.rb @@ -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