Drupal 10.1: Revisions tab appears twice on Groups

Created on 27 October 2023, about 1 year ago
Updated 5 June 2024, 5 months ago

Split from ✨ Add revisions tab on groups Fixed

Problem/Motivation

When allowing revisions on Groups in Drupal 10.1, a duplicate Revisions tab appears.

Steps to reproduce

- Install Group module on Drupal 10.1; specific module version doesn't seem to matter (happens on v1/v2/v3).
- Create a new Group Type. Ensure "Create a new revision when a group is modified" is checked (default). No need to update any settings from default options. No need to add fields or set anything else up.
- Create a new Group ("Add Group"). Mindlessly create the group and complete membership.
- You'll land on the page for your own "group membership relationship." Use the breadcrumb links to find your way to the group you just created.
- Group will show two Revisions tabs.

Proposed resolution

Don't show two Revisions tabs, only show one of them (but definitely don't show zero of them, even on Drupal 9 or 10.0).

The patch provided in the first comment resolves the issue in Drupal 10.1 but zaps the revisions tab in Drupal 9 and 10.0. It can be used as a temporary fix for Drupal 10.1 sites but cannot be applied to the project as-is.

However, if this issue does not get addressed by Dec 13th, 2023 when Drupal 10.0 goes End-of-Life, then we may be able to apply this patch and stage new backward-incompatible minor versions of the project, assuming the patch is otherwise sound.

Patch credit @RichardDavies

Remaining tasks

Write a patch (or patches) which apply to Groups versions 1, 2, and 3 and which work on Drupal 9.5 through 10.1.

πŸ› Bug report
Status

Fixed

Version

3.3

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States caesius

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024