Reference field to Group Role throws warning

Created on 10 February 2024, 5 months ago
Updated 29 February 2024, 4 months ago

Problem/Motivation

When adding a Reference field to the Group Role config entity from a field in a paragraph entity, this WARNING is thrown:

Warning: Undefined array key "base_plugin_label" in Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem->fieldSettingsForm() (line 404 of core\lib\Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem.php).

Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem->fieldSettingsForm(Array, Object) (Line: 118)
Drupal\field_ui\Form\FieldConfigEditForm->form(Array, Object) (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('field_config_edit_form', Object) (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)

It happens both when the field storage is set and the field settings are set.

The field does seem to save correctly however and it does work.

If i were to guess i would say an annotation missing on the config entity.

Steps to reproduce

Install Drupal 10.1.x
Install groups v3
install paragraphs module
Configure a group
configure a paragraph entity for group members with fields such as user reference, entity reference of type "group role"
configure a field in that group with a reference to that paragraph entity
now edit the entity reference group role setting, get the notice.

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

🐛 Bug report
Status

Active

Version

3.2

Component

Code

Created by

🇨🇦Canada liquidcms

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024