You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Plain Text field which has values that include a comma(s) ,. When I run a query against that field I add caseInsensitive: true but it doesn't work due to a comma(s) contained in the field value.
Steps to reproduce
Create a Plain Text field and add it to an entry/user.
Give that entry's/user's field a value that includes a comma (e.g. "example,").
Run an entry/user query using with that plain text field that has the value and caseInsensitive: true.
Test querying using different cases for the value (e.g. "Example", "example") and notice how caseInsensitive has no effect—only matching if its case matches.
Remove the comma from the entry's/user's field value and caseInsensitive should then work as expected.
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.
What happened?
Description
References
caseInsensitivefeature 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: truebut it doesn't work due to a comma(s) contained in the field value.Steps to reproduce
valueandcaseInsensitive: true.Expected behavior
A comma(s) in the value of a Plain Text field should not cause
caseInsensitive: trueto not be applied.Actual behavior
A comma(s) in the value of a Plain Text field causes
caseInsensitive: trueto 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…)