Has anyone got a name field working in a views global combined filter?

Comments

Anonymous’s picture

olomouc created an issue. See original summary.

joelpittet’s picture

Version: 7.x-1.10 » 7.x-1.x-dev
Category: Support request » Bug report
Issue tags: -name field

I've had this issue too. It looks like it's grabbing the title component for each field.

joelpittet’s picture

Category: Bug report » Support request

This seems to be a views issue. It's using the 'real_field', which for name module that means it's always field_name_title in most cases.

I'm not sure if I can fix that in name module off hand with providing a proper real field especially when the values are rewritten or combined like given + family.

One solution(workaround): add the field components directly and not the field and exclude them from display and add those into the combined filter. They are all named 'Name Components: COMPONENTNAME'

alan d.’s picture

Component: Miscellaneous » Documentation
Category: Support request » Task

One solution(workaround): add the field components directly and not the field and exclude them from display and add those into the combined filter. They are all named 'Name Components: COMPONENTNAME'

This is the best solution, used this myself just yesterday. :)

The combined internal filter doesn't seem to be fixable globally, i remember finding mysql specific solutions a year or two back, but nothing globally

Set to a task to update documentation

joelpittet’s picture

real_field with what most field filters not provided by this module will use, which defaults to the first component it can get it's hands on (in my case title). It would be sweet if views had a way to decorate/extend existing query() for specific fields in the handlers but that is not something that exists. We could create a new Global combined filter that would deal with the component fields, but that may not be worth it.

+1 to documentation.

alan d.’s picture

Status: Active » Fixed

  • Alan D. committed 354151f on 7.x-1.x
    Issue #2688397 by joelpittet, Alan D.: README.txt - views global...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.