Cannot set modify field values in VBO on a registaration.

Created on 23 July 2025, 4 days ago

Steps to reproduce

When trying to allow a user to modify registrations with VBO if they're trying to change values of a registration I get the following error.

Error: Call to a member function getSettings() on null in Drupal\registration\Plugin\Field\FieldWidget\RegistrationSpacesWidget->formElement() (line 69 of /opt/drupal/web/docroot/modules/contrib/registration/src/Plugin/Field/FieldWidget/RegistrationSpacesWidget.php).

The issue is $host_entity is null, which I would assume is because we're not really on a registration edit form but a VBO form. I locally was able to just set a return on the element if $host_entity is null and the form works as you'd expect, I'm not sure if there are issues with that approach or not.

πŸ› Bug report
Status

Active

Version

3.4

Component

Registration Views

Created by

πŸ‡ΊπŸ‡ΈUnited States josh.fabean

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

Comments & Activities

Production build 0.71.5 2024