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
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | group_translation_fails-3390096-4.patch | 2.35 KB | fabianderijk |
| #2 | group_translation_fails-3390096-2.patch | 2.35 KB | edwin.van.buuringen |
Comments
Comment #2
edwin.van.buuringenProvding a patch that removes the field_o365_groups_teams_id base field.
Comment #3
batigolixComment #4
fabianderijkUpdated the patch for the new version of the module
Comment #6
fabianderijkThe patch has been added to the repo. The fix will become available in the next release