Config pages does not work with views reference method

Created on 22 August 2024, 3 months ago

Problem/Motivation

The problem I found is that there is no View in the Reference method to display the required config pages in the list on the add content page. And I get this:

No eligible views were found. Create a view with an Entity Reference display, or add such a display to an existing view.

Steps to reproduce

1. Create Entity reference field.
2. Choose Type of item to reference: Config page type
3. Go to views list and create new view choose "Config page type" > Add entity reference.
4. Go to edit Entity reference field and change Reference method to Views: Filter by an entity reference view
5. In final I does not get any views.

Proposed resolution

I found a place that checks if views belong to this entity. It's here in ViewsSelection.php
So I just prepared patch to core for improve this. But maybe this is not good solution and you can propose some other, if you have any ideas, please suggest them

🐛 Bug report
Status

Active

Version

2.15

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024