Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using extraFileKinds does not work in element select modal #3869

Closed
aelvan opened this issue Feb 20, 2019 · 1 comment
Closed

Using extraFileKinds does not work in element select modal #3869

aelvan opened this issue Feb 20, 2019 · 1 comment
Assignees

Comments

@aelvan
Copy link

aelvan commented Feb 20, 2019

Description

I've added an extra file kind through the extraFileKinds general config setting, and added a field that is restricted to use only this kind. When opening the Element Selctor Modal from the field, files of this kind, does not appear in the modal.

Steps to reproduce

  1. Add a new kind to general.php:

    'extraFileKinds' => [
        'svg' => [
            'label' => 'SVG',
            'extensions' => ['svg'],
        ],
    ],
  2. Create a new field, ad choose to restrict the field with this kind.

  3. Add THE field to an entry type.

  4. Publish a new entry of type, and try to add a new asset to the field.

  5. The Element Selector Modal does not show any files, even if they're of the right type.

Additional info

  • Craft version: 3.1.12
  • PHP version: 7.2.14
  • Database driver & version: MySQL 5.7.18
@brandonkelly brandonkelly self-assigned this Feb 20, 2019
@brandonkelly
Copy link
Member

Fixed for the next release, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants