MantisBT: master-1.2.x aa652758

Author Committer Branch Timestamp Parent
dregad dregad master-1.2.x 2015-08-13 07:51 master-1.2.x ed62961d
Affected Issues  0020018: Copied bug attachments have wrong ownership
Changeset

Set bug attachment ownership when copying them

file_copy_attachments() did not set user_id when inserting the new
attachment, resulting in that field being set to 0.

The user_id is now set to the original issue's.

Fixes 0020018

Backport from master 8392a9b67f9c897849395d42a131fb979f45148f.

mod - core/file_api.php Diff File