On the Subgroup tab of a group, there are two button links - "+ Relate subgroup" and "+ Create subgroup"

The Relate button takes you to a page to choose what kind of entity to use for the relationship. It should at the least only list group types configured as subgroups for the group type being used. Ideally it would act like the Create button, which doesn't stop to ask you what kind of group when there's only one type configured.

Instead, it lists all the relationships configured for the group type. It looks the same as the "Add existing entry" list from the "All entities" tab.

Issue fork ggroup-3443855

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

brad.bulger created an issue. See original summary.

LOBsTerr made their first commit to this issue’s fork.

lobsterr’s picture

Hi Brad, could you please check MR?
I also noticed that the wizard for subgroups actually is not used, because we were missing option for GroupRelationship plugin.
We need to reintroduce the fix in other versions too

lobsterr’s picture

Status: Active » Needs review
brad.bulger’s picture

Yes, this looks like it's working. I did a new install of Drupal 10 with ggroup 3.0.x and saw the original problem, then installed the issue fork branch. It only shows the types of subgroups that installed on the group type, and when there is only one it defaults to the form for it.

  • LOBsTerr committed ada2a801 on 3.0.x
    Issue #3443855: Relate Subgroup includes all relationship types
    

  • LOBsTerr committed ce1d40b4 on 2.0.x
    Issue #3443855 by LOBsTerr: Relate Subgroup includes all relationship...

  • LOBsTerr committed e324723a on 1.0.x
    Issue #3443855: Relate Subgroup includes all relationship types
    
lobsterr’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.