Skip to content

No groups in Images From Library Selector #3256

@denis-gorin

Description

@denis-gorin

Field type of Image.
Trying to get image From Library - can't view files grouped by directories. I see only one group named files

Details

Question Answer
Relevant Bolt Version 5.1.10
Install type Composer install

Take a look to response of async/list_files?location=files&type=images on Bolt 5.0.6 for ex.

image

we can see the 'root group' and the 'business group' (corresponding business directory)

and the same response on Bolt 5.1.10

image

the 'files group' in all entries

As I see, the reason is in vendor\bolt\core\src\Utils\FilesIndex.php where we set group for each file

'group' => basename($basePath)

I Can't understand yet why we pass the same value ($basePath) for all files entries...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions