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
Post a Comment