Problem/Motivation
Current logic adds extensions when the list is empty, leading to a weird looking UI:

Steps to reproduce
- Create a download option with extensions list empty
- Select
File Downloaderfield formatter - Click the gear (or cog) icon to change settings and observe download option label created in the first step with empty parenthesis as on screenshot above
- Edit download option and add some extensions
- Now field formatter settings form show nothing next to the download option label
Proposed resolution
Invert extensions check login in field formatter.
Remaining tasks
- Patch - done
- Review
- Commit
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | file_downloader-3343592-2.patch | 798 bytes | rosk0 |
Issue fork file_downloader-3343592
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:
- 3343592-invert-extensions
changes, plain diff MR !2
Comments
Comment #2
rosk0Comment #3
klidifia commentedOnly appends extensions if set -- good.
Comment #8
sjerdo