Fallback for "Group multi-value filters" option

Created on 29 June 2024, 6 months ago
Updated 5 September 2024, 4 months ago

Problem/Motivation

Need to offer a fallback when using the "Group multi-value filters" for single value filters like "keywords" search field.

Steps to reproduce

Create a view with exposed filters:
1. One for keywords(use full text search for examle)
2. Other filters with multi values (dropdown or facets)
3. Add the summary and enable the "Group multi-value filters" option.
4. Use the form search, the summary will show the grouped values for the other filters, but the keywords will only show the label with no value shown.

Proposed resolution

In the templates/views-filters-summary.html.twig template, add a fallback when checking for the options.has_group_values.
Check for the item.groups as well. If it doesn't exist, then print the plain value.

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇱🇧Lebanon layalk

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

Comments & Activities

Production build 0.71.5 2024