Problem/Motivation
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();
Steps to reproduce
1. Create a piece of content in a group.
2. Click "Edit" / attempt to edit the content.
Proposed resolution
Change $group_content->getContentPlugin(); to $group_content->getPlugin();
Remaining tasks
Create code / make an MR.
User interface changes
None
API changes
None
Data model changes
None
Issue fork group_subscription-3383481
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
majorrobot commentedComment #4
jaydarnellGood catch @majorrobot!
Comment #5
jaydarnellComment #6
jaydarnell