Problem/Motivation

When an entity reference field is configured to use 'autocomplete ID' widget as well as having the global override enabled, the field will return duplicate results. Disabling the widget or the override resolves the issue.

Steps to reproduce

As above.

Proposed resolution

Only show single results when either or both are enabled.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

CB created an issue. See original summary.

melnychukmy made their first commit to this issue’s fork.

melnychukmy’s picture

Status: Active » Needs review

Hi, as a new Drupal contributor I fixed the bug by adding an extra check in the access() method. Now it doesn't show duplicate results when using the widget and the global override at the same time.

bluegeek9 made their first commit to this issue’s fork.

bluegeek9 changed the visibility of the branch 8.x-1.x to hidden.

  • bluegeek9 committed 7c8854e7 on 8.x-1.x authored by melnychukmy
    Issue #3458433: Fix duplicate results when using the widget with global...
bluegeek9’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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