Score:0

Grouped date filter with multiple selections

cn flag

I have a view with an exposed filter on a date field. It's a grouped filter by year using the module views_year_filter.

All works as long as I don't enable allow multiple selections. When I enable it and set the option - Any - - this option will not be saved. After a re-opening the filter settings, it's unset again.

And then, with allow multiple selections enabled I get the following errors in my view, but content output is working fine:

Warning: Undefined array key "type" in Drupal\views\Plugin\views\filter\Date->acceptExposedInput() (line 128 of core/modules/views/src/Plugin/views/filter/Date.php)

Warning: Undefined array key "value" in Drupal\views\Plugin\views\filter\NumericFilter->acceptExposedInput() (line 426 of core/modules/views/src/Plugin/views/filter/NumericFilter.php)

What I did without success:

  • changed the theme
  • deleted and recreated the view
  • tried another date field (authored on)
  • removed all other filters
  • disabled the module views_year_filter and configured the filter group with standard date an is between the first and last date of the year
  • cleared all caches after every change

Sadly I don't understand the error messages.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.