-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.x]: Query with caseInsensitive: true not working when plain text field contains a comma #16409
Comments
Hi, thanks for reaching out! That’s not related to the For example:
We’re updating the docs with this info! |
Thanks for the info and example. I'm still having troubles getting this working. Here's what I'm doing… My plainText field will have varying values such as:
I'm using a form with a select (multiple) of predefined values such as:
The select seems to send them as an array (e.g. skills[]: typescript). I'm adding in Using your example how can it work with wildcard/partial match |
Right, the extra info you just provided helps - thanks! Let me check if I understand what you’re trying to do correctly:
The code you’re using is something like this:
and it should return both entries, but it only returns one with a matching case, right? Side note:
|
What happened?
Description
References
caseInsensitive
feature added: Case insensitive custom field params #15404I have a Plain Text field which has values that include a comma(s)
,
. When I run a query against that field I addcaseInsensitive: true
but it doesn't work due to a comma(s) contained in the field value.Steps to reproduce
value
andcaseInsensitive: true
.Expected behavior
A comma(s) in the value of a Plain Text field should not cause
caseInsensitive: true
to not be applied.Actual behavior
A comma(s) in the value of a Plain Text field causes
caseInsensitive: true
to not be applied.Craft CMS version
5.5.9 Pro
PHP version
8.2
Operating system and version
macOS 15.2
Database type and version
MySQL 8.3.0
Image driver and version
Imagick 3.7.0
Installed plugins and versions
(and more…)
The text was updated successfully, but these errors were encountered: