You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A folder can be made its own parent or a child of its subfolder #409
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().
Activity
Folders: no folder can be moved into itself; fix the folder edit page