Problem/Motivation
In using the External Media module, it has highlighted an error with the `getFileExtensions` method in the `WebformManagedFileBase` class which can do a `str_replace` on a `null` value because `getDefaultFileExtensions` can return `null`.
Steps to reproduce
- Install and enable the Webform and External Media modules
- Add an External Media File element to a webform
- When on the build page for the webform, the error should appear
Proposed resolution
The getDefaultFileExtensions returns an empty string not `null`
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2023-07-03 at 17.28.05.png | 1.01 MB | jpontet |
Issue fork webform-3372040
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #6
jrockowitz commentedComment #10
jpontet commented