作业从资源库引入作者为别人的资源不能删除bug

This commit is contained in:
lizanle 2015-09-06 15:41:43 +08:00
parent baf3d90836
commit 08fd7e125f
1 changed files with 1 additions and 0 deletions

View File

@ -507,6 +507,7 @@ class UsersController < ApplicationController
att_copy = atta.copy
att_copy.container_id = nil
att_copy.container_type = nil
att_copy.author_id = User.current.id
att_copy.copy_from = atta.id
att_copy.save
@attachments << att_copy