MantisBT: master c51801bb

Author Committer Branch Timestamp Parent
dregad dregad master 2026-11-15 11:54 master 28751247
Affected Issues  0037027: Clone Issue Copies Hidden Private-Note Attachments Into a Visible Child Issue
Changeset

Only copy issue-level attachments

This prevents creation of orphaned attachments linked to the new bug id
and the old bug's notes.

file_copy_attachments() is called in the context of copying an issue,
but it is not able to handle bugnote-level attachments as it does not
know about the new IDs of cloned notes.

Fixes 0037027

mod - core/file_api.php Diff File