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

Command icon 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

majorrobot created an issue. See original summary.

majorrobot’s picture

jaydarnell’s picture

Good catch @majorrobot!

jaydarnell’s picture

Status: Active » Fixed
jaydarnell’s picture

Status: Fixed » Closed (fixed)