Closed (fixed)
Project:
ProfilePlus
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
9 Mar 2010 at 00:02 UTC
Updated:
19 Aug 2010 at 06:50 UTC
drupal table profile_values only stores a bit for checkboxes. That means if you create a profile checkbox like "check here if you're super awesome" and then search for "awesome" you will not get a match.
This is easily fixed by adding (pf.title LIKE '%%%s%%' AND pf.type='checkbox' AND pv.value=1) to the where clauses on lines 55 and 60. Essentially searching by the field title for checkboxes and looking for checked items.
Might be worth adding to the module... or at least documenting somewhere for people that need to search checked profile fields.
Comments
Comment #1
james marks commentedAdded advanced profile search capability including support for checkboxes in current development version.
Take a look at that version and see if it works for you.
James