Problem/Motivation
anyLabel is set up even if there is only one element in the list.
Steps to reproduce
Have a list in the filter with only one element.
Proposed resolution
Add condition in WidgetView.js to set antLabel only if we more than one element.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | none_option_missing.png | 49.07 KB | mkindred |
Issue fork shs-3254384
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:
- 2.0.x
changes, plain diff MR !1
- 3254384-anylabel-is-set
changes, plain diff MR !3
Comments
Comment #2
nasser_Comment #8
stborchertThanks for this simple but effective fix. Merged!
Comment #9
stborchertComment #11
mkindred commentedWas this fix mainly for use in views? I'm finding that hiding the
- None -option for a single child term is confusing when it's a field. If you don't require the deepest level, and you accidentally select the single child term, you cannot deselect it.The workaround is to select
- None -for the parent, and then re-selecting the parent. But this is confusing to my users.Comment #12
mkindred commentedEvidently I had trouble with the image upload:
Comment #13
nelo_drup commented#4 Same problem I hope it will be solved and also the -any- option is shown at the end of the options in some cases in the hierarchy the -none- or -any- option does not appear either
My version is:
- Drupal 9.5.5
- PHP 8.1
- MySQL 5.37