- Issue created by @scambler
- Merge request !11724Issue #3471490 by scambler: Multi-selected grouped view filters fixed → (Closed) created by Unnamed author
- 🇳🇿New Zealand quietone
Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies → .
Drupal 10 is now an LTS, or in maintenance mode, and there are limited allowed changes for a maintenance minor release → .
scambler → changed the visibility of the branch 11.x to hidden.
- Merge request !11755Issue #3517198: Fix grouped view filters to work with multivalue selections → (Open) created by Unnamed author
Thanks @quietone. I've made a bit of a mess, but I think I've done it right this time.
- 🇺🇸United States smustgrave
Thanks for reporting, will also need a test case showing the issue.
- 🇮🇳India anju.philip@zyxware.com
Hi, I've verified and tested MR! 11755 and applied the patch successfully on 11. x-dev Version: The changes are working as expected.
- Create a Test Content Type : Go to /admin/structure/Content types/Add content type
- Add a List (text) Field: Go to Manage fields for Test Content. Add a field: Category (List (text)).Add the allowed values: eg, one, two, three. Create at least 3 items, assigning various Category values
- Create Some Content: Go to Content > Add content > Test Content
- Create a View: Go to Structure > Views > Add view. Show: Content of type Test Content. Create a page display. Check "Create a page", set path (e.g. /test-filter)
- Add Exposed Filter: In your view:. Click Add Filter Criteria. Choose the Category field you created. Click Expose this filter to visitors. Check Allow multiple selections. Click Grouped filters. Add groups, eg, G1 one and two, G2 three .Save the view
- Test the Filter Behavior: Visit your view page (/test-filter). Try selecting Group 1 and Group 2
- Observed the changes here
Testing Result:
After selecting the multi-selected filter, the OR function is working (You can see all content with either one, two, or three). Hence, the changes are working as expected.
Attaching the videos for reference.
Hence, moving to RTBC!
Thanks
- 🇮🇳India anju.philip@zyxware.com
Hi, I've verified and tested MR! 11755 and applied the patch successfully on 11. x-dev Version: The changes are working as expected.
- Create a Test Content Type : Go to /admin/structure/Content types/Add content type
- Add a List (text) Field: Go to Manage fields for Test Content. Add a field: Category (List (text)).Add the allowed values: eg, one, two, three. Create at least 3 items, assigning various Category values
- Create Some Content: Go to Content > Add content > Test Content
- Create a View: Go to Structure > Views > Add view. Show: Content of type Test Content. Create a page display. Check "Create a page", set path (e.g. /test-filter)
- Add Exposed Filter: In your view:. Click Add Filter Criteria. Choose the Category field you created. Click Expose this filter to visitors. Check Allow multiple selections. Click Grouped filters. Add groups, eg, G1 one and two, G2 three .Save the view
- Test the Filter Behavior: Visit your view page (/test-filter). Try selecting Group 1 and Group 2
- Observed the changes here
Testing Result:
After selecting the multi-selected filter, the OR function is working (You can see all content with either one, two, or three). Hence, the changes are working as expected.Attaching the videos for reference.
Hence, moving to RTBC!
Thanks The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.