Regression bug: User role changed is missing from the log.

Created on 7 March 2023, over 1 year ago

Problem/Motivation

3.1.2 release brought in a new feature #3321705: Record user roles in log description for changes on user β†’ .
This new feature was removed by the fix for πŸ“Œ TFA Support for user login event log track Fixed .

Steps to reproduce

  1. Enable event_log_track_user sub module.
  2. Update a user account by granting a new user role.
  3. Check the event log for that action. The new user role wasn't mentioned the log.

Proposed resolution

On the line 35, modules/event_log_track_user/event_log_track_user.module
https://git.drupalcode.org/project/events_log_track/-/commit/30da2a5675f...

and line 61, the user role updated is missing too.
https://git.drupalcode.org/project/events_log_track/-/commit/30da2a5675f...

The proposed solution is to change those two line back to

'description' => t('%name (%uid) as %role', [

Then the log will look like,

ELT [user] [update] ON [user/6/edit] BY [user:1:admin:authenticated] [test user (6) as authenticated]

And

ELT [user] [insert] ON [admin/people/create] BY [user:1:admin:authenticated] [test_approver (7) as authenticated,content_approver]

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

3.1

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia mingsong πŸ‡¦πŸ‡Ί

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024