Add social_group_join_method_usage hook so join methods work with custom groups

Created on 1 February 2023, over 1 year ago
Updated 19 May 2023, over 1 year ago

Problem/Motivation

Without this hook there is a warning in custom groups pages because of join methods changes introduced in Open Social:
Warning: Undefined array key "method" in Drupal\social_group\JoinManager->preprocess() (line 160 of profiles/contrib/social/modules/social_features/social_group/src/JoinManager.php).

Join button is not shown for custom groups defined to work with social_group_types and also the Join methods on the edit form for custom groups do not get rendered as it does on flexible groups.

Steps to reproduce

Join any custom group. Warning appears 2 times and join button isn't shown.
On the edit form of a custom group the join methods are presented as checkboxes instead of radio buttons.

Proposed resolution

Add merge request to have the same behaviour as flexible groups.

Remaining tasks

Merge changes.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024