Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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)
Comment | File | Size | Author |
---|---|---|---|
#2 | duplicate-entity-reference-base-fields-2863871-2.patch | 464 bytes | aeotrin |
Screen Shot 2017-03-24 at 14.18.33.png | 460.02 KB | aeotrin |
Comments
Comment #2
aeotrinLooks 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)
Comment #4
keithm CreditAttribution: keithm commented@aeotrin: Confirming the problem and your fix. Thanks for reporting and your patch.