- Issue created by @mably
- Merge request !11Issue #3420648: remove hard coded 'Any' template name filter option β (Open) created by mably
- Status changed to Postponed: needs info
5 months ago 3:04pm 12 February 2024 - π¨π¦Canada _randy
I'm not sure I see this issue. I only see "ANY" as an option once regardless if it is required or not.
If we were to be a bit more precise, we'd probably do a detection of the filter being required rather than just removing it altogether.
More like this:
$is_required = $this->options['expose']['required'] ?? FALSE; if(!$is_required) { $options[0] = $this->t(' - Any -'); }
- π«π·France mably
Why not simply let Views handle it?
It works perfectly fine on my instances on Drupal 10.2.3 and 9.5.11.
Here is what I get when I don't make the filter required: