Skip to content

A folder can be made its own parent or a child of its subfolder #409

Closed

Description

@caseysoftware

The "Subfolder of" list on the folder edit page offers the folder itself and its descendants, and CFile_Folder doesn't check for cycles. Reproduced: with Contracts > Signed, setting Contracts' parent to Signed is accepted. Both folders then vanish from the tree, and their files with them.

Fix: exclude the folder and its descendants from the parent list, and reject cycles in CFile_Folder::isValid().

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

Activity

  1. added a commit that references this issue on Oct 21, 2026
    96864c2
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