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