Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
If you create a grouped filter that allows multiple selection and add a default, the default is ignored.
Note: it happens when you have multiple filters. Currently, if at least one filter value is added to the user input already, the rest are just being ignored.
Proposed resolution
See the patch
Remaining tasks
Add tests
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#14 | 2916682-14.patch | 4.21 KB | Matroskeen |
| |||
#14 | 2916682-test_only.patch | 3.52 KB | Matroskeen |
Comments
Comment #2
larowlanpatch
and adding related issue from d7 views
Comment #4
borisson_I think this needs a test as well.
Comment #11
kim.pepperComment #14
MatroskeenThe fix makes sense. Adding some extra assertions to have a failing test.
Comment #16
LendudeThis looks great, nice test coverage.
Checked that the new settings don't make us lose existing coverage and that looks ok.
Comment #21
larowlanQueued a 9.5 test, patch looks good to me
Comment #24
larowlanWhilst I added a patch here, it was only a copy from the D7 views queue, and that was 5 years ago. So on that basis I consider myself to be eligible to commit this.
Committed to 10.1.x and backported to 10.0.x and 9.5.x
As the risk of disruption is low here, backported to 9.4.x too.