Encrypted fields do not work with Views exposed filter(s)

Created on 12 December 2013, over 11 years ago
Updated 18 December 2023, over 1 year ago

I came across this issue on a site and was able to re-produce with a fresh installation of Drupal-7.24 with only views, field_encrypt, ctools, and encrypt modules installed in addition.

1. I added a simple text field to the Article content type and checked the box to encrypt that field.
2. I added a few test articles with the new field populated.
3. I then created a basic view with only the title and the new field.
4. I added an exposed filter on the new field and changed 'is equal to' to 'contains'
5. Upon testing, filtering with the new field yields no results

I'm assuming this is due to views querying the DB directly instead and bypassing the field API.

I would appreciate any guidance. For now, I will look at altering the views query to get it to work for my client. Thanks in advance!

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States rod4president

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024