From 8b52d63d146ad3fd57abe74d3ae7af0f38d572aa Mon Sep 17 00:00:00 2001 From: yanxd Date: Mon, 14 Apr 2014 14:51:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E8=81=94=E6=96=87=E4=BB=B6=E5=90=8C?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=85=B3=E8=81=94tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 1c02326a7..73b1849c1 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -150,6 +150,7 @@ class AttachmentsController < ApplicationController ori = Attachment.find_by_id(attach_id) next if ori.blank? attach_copied_obj = ori.copy + attach_copied_obj.tag_list.add(ori.tag_list) # tag关联 attach_copied_obj.container = obj attach_copied_obj.created_on = Time.now attach_copied_obj.author_id = User.current.id