When I install the module and cache rebuild. I am suddenly having duplicate Content Reference, Taxonomy Term Reference and User Reference field types under the select for Add New Field.

The markup is showing a viewfield:content option name (see screenshot).

Not sure what might be causing this. This is happening on a base Drupal 8 install with just the view field module installed. (reproduced on using the SimplyTestMe link on the project page)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aeotrin created an issue. See original summary.

aeotrin’s picture

Looks like the reason this is happening is because this module doesnt override the getPreconfiguredOptions() function that is inherited. Thus leading to the generation of the select list thinking that this module extends content, taxonomy term and user.

Adding in a return []; for this function works (this appears to be what other modules that extend entity reference do)

  • keithm committed 558f214 on 8.x-3.x
    Issue #2863871 by aeotrin: Fixed duplicate entity reference field types...
keithm’s picture

Status: Active » Fixed

@aeotrin: Confirming the problem and your fix. Thanks for reporting and your patch.

Status: Fixed » Closed (fixed)

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