Group translation fails

Created on 27 September 2023, about 1 year ago

Problem/Motivation

When adding a translation for an existing group (i.e. site url/en/group/group id/translations/add/nl/en) the result is a fatal error:
Call to a member function getSettableOptions() on null in Drupal\Core\Field\Plugin\Field\FieldWidget\OptionsWidgetBase->getOptions() (regel 145 van /var/www/html/web/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsWidgetBase.php).

Steps to reproduce

In a multilingual site with Groups and O365 Groups modules enabled attempt to add a translation for an existing group, i.e. by visiting site url/en/group/group id/translations/add/nl/en or clicking the add button on the transaltions page when editing a group.

Proposed resolution

Remove the field_o365_groups_teams_id basefield from the o365_groups module and database (via an update hook), since the field has become obsolete (as far as I understand).

Remaining tasks

Write and test a patch.

User interface changes

N/A

🐛 Bug report
Status

Active

Version

5.0

Component

Code

Created by

🇳🇱Netherlands edwin.van.buuringen Den Haag

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

Comments & Activities

Production build 0.71.5 2024