Cannot add entity reference to participant map

Created on 25 May 2023, over 1 year ago
Updated 31 May 2023, over 1 year ago

Problem/Motivation

When calling the _vgwort_add_entity_reference_to_participant_map() for the first time, it will fail with the error

TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given

Steps to reproduce

Add entity reference field "field_author_node" to a node and call:

drush ev "_vgwort_add_entity_reference_to_participant_map('node', 'field_author_node');"

Proposed resolution

In _vgwort_add_entity_reference_to_participant_map() create the $entity_types[$entity_type]['fields'] array if it does not exist.

Additionally add an empty fields key in vgwort.settings.yml.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany daniel.bosen

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

Comments & Activities

Production build 0.71.5 2024