Drupal Views - Custom / Modded SQL -


i having issue "profile checkboxes" module stores custom profile fields comma separated.

the issue if create view filter value. sql result ends being this:

...and (profile_values_profile_interests.value in ('business , investment'))... 

which not return data since value stored this:

"business , investment, case law, labor law, tax law"

i need adjust sql making sure field contains selected value

is there can adjust this?

for 'quick hack' solution, try implementing hook_views_query_alter(&$view, &$query) in custom module, check $view->name (and $view->current_display) ensure dealing right view/display, , manipulate $query needed.


edit: looks underlying problem has been addressed module maintainer in meantime - see john's answer ...


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -