Skip to content

defaultForAllTables doesn't work as described in the docs #23

@j4k3

Description

@j4k3

The configuration value defaultForAllTables does not seem to work as described in the documentation. It is, in fact not even mentioned in the hook method, getDefaultUploadFolder() at all.
I've modified the file by duplicating the following lines and appending them at line 45, modifying them like so,

    if ($subFolder['value'] === null) {
        $subFolder = $backendUserAuthentication->getTSConfig(
            'default_upload_folders.' . $table,
            $pageTs
        );
    }
    if ($subFolder['value'] === null) {
        $subFolder = $backendUserAuthentication->getTSConfig(
            'default_upload_folders.defaultForAllTables',
            $pageTs
        );
    }

It now seems to work as intended. Was this just missing, or am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions