- π·π΄Romania vasike Ramnicu Valcea
This looks like duplicate of
https://www.drupal.org/project/views_autocomplete_filters/issues/3259438 β¨ Not working with contextual filters Fixed... cleanup the queue.
I have a node with a multi-value entity reference field. I have a view that displays a list of the entities that can be referenced from my node. I am passing the nid to the view as a contextual filter, which limits the results displayed by the view to those referenced by the node. This works.
I have an autocomplete filter on the view on the referenced entities' title. When I start typing, the autocomplete filter suggests referenced entities from other nodes.
It's a bit confusing to explain, so I will try to demonstrate.
Node 1 ( nid: 1 )
- field_entity_reference_field
- entity A
- entity B
Node 2 ( nid: 2 )
- field_entity_reference_field
- entity C
- entity D
"View of Entities" - Contextual Filter: nid
Filter: Entity Title
Pass the NID "1" to the view.
View Results:
- entity A
- entity B
Autocomplete filter suggestions:
- entity A
- entity B
- entity C
- entity D
So, the autocomplete filter fails to consider the contextual filter, displaying suggestions that aren't in the view display. Does that make sense?
Closed: duplicate
1.2
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This looks like duplicate of
https://www.drupal.org/project/views_autocomplete_filters/issues/3259438
β¨
Not working with contextual filters
Fixed
... cleanup the queue.