Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
vasikecould 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
Comment #2
phl3tch CreditAttribution: phl3tch commentedNo 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.
Comment #3
phl3tch CreditAttribution: phl3tch commentedOops, 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..."
Comment #4
vasikei 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.
Comment #5
shein84 CreditAttribution: shein84 commentedHi, 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.
Comment #6
shein84 CreditAttribution: shein84 commentedComment #7
shein84 CreditAttribution: shein84 commentedSorry, i didn't know that i should have field title with relationship in Fields section.