Skip to content

File filters yield inconsistent results when file_type null #3134

Description

@robinsowell

Had a user with only images allowed in a directory. Had 50 pages of files in the directory. If they filter by 'Image' they had 5 pages of files.

EE 7.2.11

I think the issue is file_type may not have been set- if I do a 'SELECT * FROM exp_files where file_type IS NULL' I get 4000 results. From comments, it's clear that after a migration, it may not have been set at that point. According to them:

The workaround is simply, simply go to column (metadata) and select File type. Once it is done, all the images will be identified as Image file type again.

I'm thinking it's a js thing and the filter didn't have access to the null file types until that happens.

Is a weird one. They can also get a broken language key in the column when file type is empty- just get type_.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: AcceptedBug has been confirmed, is reproducible, and ready to work on.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions