- Issue created by @majorrobot
- @majorrobot opened merge request.
- Status changed to Fixed
about 1 year ago 8:43pm 30 August 2023
Using 2.0.0-alpha6 and attempted to edit a piece of content within a group. Got an error, and I pulled this from the log:
Error: Call to undefined method Drupal\group\Entity\GroupRelationship::getContentPlugin() in group_subscription_form_node_form_alter() (line 510 of /html/modules/contrib/group_subscription/group_subscription.module)
Looks like it's due to an update in Group. Line 510 of group_subscription.module is
$plugin = $group_content->getContentPlugin();
But should be:
$plugin = $group_content->getPlugin();
1. Create a piece of content in a group.
2. Click "Edit" / attempt to edit the content.
Change $group_content->getContentPlugin(); to $group_content->getPlugin();
Create code / make an MR.
None
None
None
Fixed
2.0
Code