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 #3303901: TFA Support for user login event log track.
Steps to reproduce
- Enable event_log_track_user sub module.
- Update a user account by granting a new user role.
- 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
Issue fork events_log_track-3346427
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
Comment #2
mingsongComment #4
mingsongComment #7
smustgrave commented