The "contains" operator does not work as expected for text fields #19576
Labels
severity: low
If the issue only affects a very niche base of users and an easily implemented workaround can solve
source: core:content-manager
Source is core/content-manager package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
Bug report
Required System information
Describe the bug
In the content manager, if I try to add a filter
contains
to a text fieldname
where the value isold_
, I get entries whose name does not containold_
. However, they containold
. So, it seems that the underscore is being ignored here. Clearly, this is not the intended behaviour because underscores should not be ignored and should be treated as any other character.Steps to reproduce the behavior
name
(or whatever)old
contains
to the content manager where the value isold_
and see that you get entries that do not containold_
but containold
Expected behavior
The
contains
filter works as expectedScreenshots
I cannot share the data with you
Additional context
I cannot update to a Strapi version newer than 4.16.2 until #19532 gets solved.
The text was updated successfully, but these errors were encountered: