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

Comments

edwin.van.buuringen created an issue. See original summary.

edwin.van.buuringen’s picture

StatusFileSize
new2.35 KB

Provding a patch that removes the field_o365_groups_teams_id base field.

batigolix’s picture

Status: Active » Needs review
Issue tags: +finalist-sprint
fabianderijk’s picture

StatusFileSize
new2.35 KB

Updated the patch for the new version of the module

fabianderijk’s picture

Status: Needs review » Fixed

The patch has been added to the repo. The fix will become available in the next release

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.