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

SearchableDropdownField doesn't work in form modal #1690

Closed
2 tasks done
GuySartorelli opened this issue Feb 25, 2024 · 2 comments
Closed
2 tasks done

SearchableDropdownField doesn't work in form modal #1690

GuySartorelli opened this issue Feb 25, 2024 · 2 comments

Comments

@GuySartorelli
Copy link
Member

GuySartorelli commented Feb 25, 2024

Module version(s) affected

5.x-dev (unreleased feature for 5.2)

Description

In an upload field, if you select "choose existing" and then click on a file, the "permissions" tab of the form on the right doesn't show the "viewer groups" and "editor groups" fields. These are SearchableDropdownField in 5.x-dev.

With yarn dev in silverstripe/admin, you get the following console output:

Uncaught exception TypeError: schema is undefined
    onmatch SearchableDropdownFieldEntwine.js:16

When you insert the file, you get this console output:

Uncaught exception TypeError: Root is undefined
    onunmatch SearchableDropdownFieldEntwine.js:27

How to reproduce

  1. In any upload field, click "choose existing"
  2. Click on a file, but don't insert it yet
  3. Look in the "permissions" tab in the form on the right.

Possible Solution

No response

Additional Context

No response

Validations

  • Check that there isn't already an issue that reports the same bug
  • Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)

PR

@GuySartorelli
Copy link
Member Author

GuySartorelli commented Mar 5, 2024

PR merged.

As per #1699 (comment) I'll leave it up to you to decide whether to close this issue and raise a separate one about TreeDropdownField not displaying, or whether you want to work on that as part of the existing issue.

@sabina-talipova
Copy link
Contributor

New issue for TreeDropdownField was open. #1701
Close this ticket.

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

No branches or pull requests

2 participants