Error in unsubscribe function

Created on 4 July 2024, 5 months ago

Problem/Motivation

In the user_mailman_register_update_remote function of user_mailman_register.module, there is an error in the condition for updating subscriptions to lists that are synced with roles. The result is that unsubscribe do not work for lists that are not synced with roles

Wrong:

    if (($list['role_sync'] == USER_MAILMAN_REGISTER_SYNC_SUB_AND_UNSUB ||
    $list['role_sync'] == USER_MAILMAN_REGISTER_SYNC_UNSUB_ONLY) &&
    !$email_changed && !$roles_changed) {

Right:

    if ($list['role_sync'] == USER_MAILMAN_REGISTER_SYNC_SUB_AND_UNSUB &&
    !$email_changed && !$roles_changed) {
πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rclemings

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

Comments & Activities

Production build 0.71.5 2024