User registration form copies user creator subscriptions

Created on 14 May 2025, 22 days ago

Problem/Motivation

If user A has personal forum subscriptions and tries to create a new user B via /admin/people/create, user A's forum subscriptions are added to that new user creation form.

Steps to reproduce

As a user able to create other users, subscribe to forum F and topic T.

Visit /admin/people/create and the new user creation form will have forum F and topic T.

Proposed resolution

I think it's a simple matter of returning early in `forum_notifications_subscription_form_user_form_alter()` function if the currently altered form is the user registration one:

if ($form_id == 'user_register_form') { return; }

It seems to work around the issue in my case.

Note that this happened and was tested under Drupal 10.4.5.

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇨🇦Canada ptaff

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