Title pretty much says it all. If you create a filter with a relationship, autocomplete will ignore the relationship and draw its data from the base node, user, whatever.

Comments

vasike’s picture

Status: Active » Postponed (maintainer needs more info)

could you please :
1. try with the last dev?
2. tell the entire story of your case. it will be much easier to indetify and hopefully solve it.

thank you

phl3tch’s picture

No difference with the last dev.

I've got two cases that are failing in different ways:

1) I've got a view pulling a bunch of nodes with an author relationship. Users have a few fields, including first name and last name. So I create a filter on last name, choose the author relationship, expose it, set the operator to "contains," check autocomplete, and save it. The preview says "Field with autocomplete results is not selected for Field: Last name filter."

2) Most of the nodes on the site I'm working on are group nodes. So, I make a view with a bunch of nodes with an OG relationship. This is a bit more difficult because first you set up the relationship to the group entity and then from the entity to the specific group the node belongs to. Anyway, I create a filter on group title, choose the group relationship, expose it, set the operator to "contains," check autocomplete, and save. No errors this time, but when I start using the filter, I get a list of the nodes specified in the base view rather than the related ones.

phl3tch’s picture

Oops, I was not using the latest dev after all.

With that, the author filter behaves the same, while the OG filter throws an ajax error — something like this: "An AJAX HTTP error occurred.
HTTP Result Code: 404
Debugging information follows.
Path: http://dev.hg.localhost.gatech.edu:8080/autocomplete_filter/title_2/cont...
StatusText: Not Found
ResponseText:
Page not found
blah blah blah..."

vasike’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Status: Postponed (maintainer needs more info) » Closed (duplicate)

i think this issue duplicates other issues :
- #1836310: 404 Ajax error for autocomplete filters
- #1955024-14: Module doesn't seem to be working with drupal 7.21 for Title filters

and i think this should be solved on the latest dev version.

shein84’s picture

Hi, I have exactly the same problem. I'm using latest version of Drupal 7 and i have tried both version of autocomplete module.
SS
Thanks.

shein84’s picture

Issue summary: View changes
Status: Closed (duplicate) » Active
shein84’s picture

Status: Active » Closed (duplicate)

Sorry, i didn't know that i should have field title with relationship in Fields section.