Skip to content

Duplicating a file moves the copy to Root and drops its project #411

Closed

Description

@caseysoftware

modules/files/do_file_aed.php L65–66 sets file_project = 0 and file_folder = 0 on the duplicate, so a copy of a project file appears in no project and no folder (stored under files/0/).

Fix: keep the source's project and folder on the copy (and store the copy in that project's directory).

Blocks #394, because Phase 1 rewrites duplicate on top of the storage layer.

Fix before Phase 1 of the Pluggable File Backend proposal (#404).

Activity

  1. added a commit that references this issue on Oct 21, 2026
    e5b662e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions