Initial field configuration fails and AJAX error produced

Created on 31 May 2024, 4 months ago
Updated 13 July 2024, 3 months ago

Problem/Motivation

Field configuration doesn't work. When selecting Reference Method, form does not appear and error is produced:

Error: Call to a member function getTargetEntityTypeId() on null in Drupal\dependent_fields\Plugin\EntityReferenceSelection\ViewsSelection->buildConfigurationForm() (line 418 of /var/www/html/estatecompliance.com.au/web/modules/contrib/dependent_fields/src/Plugin/EntityReferenceSelection/ViewsSelection.php).

Steps to reproduce

Create a taxonomy entity reference field and select "Make field dependant using views" in Reference Method field

Proposed resolution

Possible patch attached.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom simonknight

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

Comments & Activities

Production build 0.71.5 2024