- Issue created by @peachez
- last update
12 months ago 4 pass - Status changed to Needs review
7 months ago 6:29pm 10 June 2024
When a keys doesn't not exist, a method for group module v1 is executed. When using group module v2, this is an issue.
Error: Call to undefined method Drupal\group\Entity\GroupRelationship::getContentPlugin() in Drupal\entitygroupfield\Plugin\Field\FieldWidget\EntityGroupFieldWidgetBase->formElement() (line 249 of modules/contrib/entitygroupfield/src/Plugin/Field/FieldWidget/EntityGroupFieldWidgetBase.php).
See this link for the proper conversion method:
https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib... β
A simple unset of the tested var key while visiting a node using the group field will cause the ternary else statement to execute showing a WSOD error.
Patch supplied
Needs review
2.0
Code