Views Exposed Filters Summary does not work well with grouped exposed filters

Created on 18 August 2022, over 2 years ago
Updated 8 September 2023, over 1 year ago

Problem/Motivation

When trying to use this module with grouped exposed filters (say the values of a text field) the module prints out the first letter.

Also, if said exposed filter allows multiple selections, the module only prints out the last one.

Steps to reproduce

Install a plain Drupal site
Install the module
Create a content type, add a multivalued field.
Create sample content entering test content for the multivalued field.
Create a view that lists your content type.
Expose the field as a multi valued grouped filter using the test content entered for the multivalued field.
Add the exposed filters summary to the view.

Proposed resolution

Since this module works fine for other exposed filter types, we would only need to add extra code to track all the grouped option labels, then traverse the query string for selected filters, to build the list of items building the urls for each.

Remaining tasks

Investigate
Propose a solution
Test the solution
Merge the solution
Do the happy dance.

User interface changes

None

API changes

Change the way we build the summary links for exposed grouped filters.

Data model changes

None

πŸ› Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡²πŸ‡½Mexico rmontero CMDX

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024