Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created couple of custom user fields.
In views have those fields in Fields and ofcourse in Filters. Without autocomplete those fields search filters work, but when trying to use autocomplete it does not find any.
I have set exposed filter operation to: Contains.
Comments
Comment #1
vasikei can't reproduce it.
may i have more details, maybe some printscreens about it.
thanks
Comment #2
IRuslan CreditAttribution: IRuslan commentedI have same problem.
Filter works correctly but autocomplete output nid instead of value of custom field.
After quick look, i've found that problem caused by field alias usage in function views_autocomplete_filter().
For custom field i'm still have $field_alias as 'nid', and that's why i got wrong results.
For now i have no any workaround.
Comment #3
IRuslan CreditAttribution: IRuslan commentedComment #4
IRuslan CreditAttribution: IRuslan commentedBecause of that logic:
$dropdown = $use_raw_dropdown ? check_plain($row->{$field_alias}) : $rendered_field;
custom field could not be found by alias. It means that custom fields don't work with checked 'Unformatted dropdown' and 'Unformatted suggestion' options of filter.
Comment #5
vasikei still don't get what you have there.
the "alias" you mentioned it's not anymore in the code. please try to upgrade the module.
New version just came out : 7.x-1.0-rc1 - https://drupal.org/node/2020339
Comment #6
IRuslan CreditAttribution: IRuslan commentedI still have that problem on 7.x-1.0-rc1 version.
Comment #7
vasike