Problem/Motivation

Views generated using this module are not compatible with core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php because that expects there to be Entity with a bundle, rather than a Config Entity.

Steps to reproduce

  1. Create a View with Roles configuration list
  2. Create a Node with reference field to Role configuration
  3. Select 'Views: Filter by an entity reference view' instead of Default selection in the reference field configuration
  4. Select the View created in (1)
  5. Fatal error

Proposed resolution

  1. Extend ViewsSelection to make it compatible
  2. Alternatively I would be happy to make this into a Contrib module extending this module if you prefer

Remaining tasks

MR

User interface changes

Views relying on this module are now able to be used as reference selection Views

API changes

N/A

Data model changes

N/A

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

scott_euser created an issue. See original summary.

scott_euser’s picture

Status: Active » Needs review

See my comment on the MR.
Otherwise its a fairly tiny Plugin.

Let me know if you prefer I create this as a separate contrib module extending this.

scott_euser’s picture

Once reviewed that others are happy with the approach, will add test coverage

scott_euser’s picture

Assigned: Unassigned » scott_euser
Status: Needs review » Needs work

Needs test coverage

scott_euser’s picture

Assigned: scott_euser » Unassigned
Status: Needs work » Fixed

Added test coverage + fixed some schema validation errors in the wider module that that revealed

  • scott_euser committed f212363f on 2.1.x
    Issue #3503576 by scott_euser, weynhamz: Make this module work with...

Status: Fixed » Closed (fixed)

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