Group media 3.0: Missing Group 2.x API change in groupmedia_vbo

Created on 30 August 2023, over 1 year ago

Problem/Motivation

According to my understanding the following happened to provide Group 2.x support:

But one bit was omitted:
Though the configurable Action plugin was updated, specifically on the line: https://git.drupalcode.org/project/groupmedia/-/blob/3.0.x/src/Plugin/Ac...

$group_relationship_types = $this->entityTypeManager
      ->getStorage('group_content_type')
      ->loadByPluginId($plugin_id);

The mirrored change in the Group Media Views Bulk Operations (VBO) sub-module has not been made on the line: https://git.drupalcode.org/project/groupmedia/-/blob/3.0.x/modules/group...

$group_relationship_types = $this->entityTypeManager
      ->getStorage('group_content_type')
      ->loadByContentPluginId($plugin_id);

The change of methods as described in https://www.drupal.org/docs/contributed-modules/group/updating-your-modu... for the GroupRelationshipStorage (GroupContentStorage in 1.0):

  • Group 1.0 uses loadByContentPluginId
  • Group 2.0 uses loadByPluginId

method Group 1.0 used loadByContentPluginId | method

Proposed resolution

Provide a patch with the missing change to support Group 2.x in Group Media Views Bulk Operations (VBO) and integrate it ub

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇦🇺Australia dabbor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024