Active
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2015 at 22:22 UTC
Updated:
2 Dec 2022 at 10:16 UTC
Jump to comment: Most recent
When exposing Views filters it appears they are case-sensitive. The D7 solution found here also works on Combine.php in the D8 version of views: #1805272-37: Combine fields filter case-sensitive search
Modifying line 89 in core/modules/views/src/Plugin/views/filter/Combine.php removes the case-sensitivity.
Comments
Comment #2
geertvd commentedSeems like a feature request to me.
Comment #3
dawehnerWell, depends what the user expects ... this might be more of a bug.
In case you want a case insensitive you can use the like operator
Comment #4
geertvd commentedJust tested this and for me the combine filter is actually not case sensitive when I have selected "Contains" as operator. When I select "Contains any" I get the following error:
Comment #5
geertvd commentedThere's already a related issue for that previous error #1782678: "Combine fields" filter doesn't work with "Contains any word".
Comment #6
geertvd commentedSo I can't really reproduce this one. @cwightrun can you add steps to reproduce?
Comment #7
cwightrun commentedSurely - forgive my fumbling through this reporting:
We have a View that displays taxonomy terms, and a filter for "Taxonomy Term: Name (exposed)":
https://dl.dropboxusercontent.com/spa/th0jyeygb5sj7u0/oeeitzcm.png
The exposed term name filter uses the "Contains" operator -> this filter is case-sensitive on our install (beta 14).
Edit: Adding screenshot - https://dl.dropboxusercontent.com/spa/th0jyeygb5sj7u0/pajmdod1.png
Comment #8
geertvd commentedThanks for adding the steps to reproduce. Still unable to reproduce it though, perhaps someone else is able to.
Comment #9
lendudeThe bug part of this should be handled by #2664530: Views Combined fields filter with "Contains any word" or "Contains all words" operator results in an incorrect SQL query and a fatal error and #2784739: Fix PostgreSQL operator in views, where case sensitivity is dependant on the database used.
So remarking this more clearly as a feature request for allowing expicit case sensitive searching.
Comment #22
kasey_mk commentedIn case this is a helpful piece of info, my combo field was case-insensitive until I added a file URI field to it; then the combo field became case-sensitive.
Comment #23
anjali rathodI will work on this issue. Currently I am planning to add a checkbox for case-sensitive check.
Comment #24
anjali rathodCouldnt make any progress.