Group translation fails

Created on 27 September 2023, 9 months ago
Updated 24 November 2023, 7 months 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

Needs review

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.69.0 2024