Skip to content

Folder tree shows the subfolder count as "(N files)" #407

Closed

Description

@caseysoftware

getFolders() in includes/cleanup_functions.php L1326 sets $file_count = count($file_folder->getFoldersByParent(...)), which counts subfolders, then prints it as "(N files) +" and uses it to decide whether to render the file list. A folder with files but no subfolders shows no files; a folder with one subfolder shows "(1 files)".

Fix: count files with CFile_Folder::getFiles() (or countFiles()), respecting the same project/task permission filters.

Depends on #406.

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

Activity

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