Ignores contextual filter limiting the view results

Created on 21 April 2019, over 5 years ago
Updated 11 March 2024, 10 months ago

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?

πŸ› Bug report
Status

Closed: duplicate

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scottsawyer Atlanta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024