Steps to reproduce:
Go to Users: Manage.
Select a user, click Block (or Unblock) in the toolbar.
Go to Users: Actions Log.
6.1
Only one log entry — "User X blocked user Y" (or "unblocked", matching the action taken).
Two entries appear, one correct and one showing the opposite action (e.g. blocking a user also logs a spurious "unblocked" entry), both timestamped the same second.
Joomla version (6.1.2 / 5.4.x — mention you verified against both), PHP version, DB.
you can reuse the root-cause explanation from the PR description I drafted: the onUserBeforeSave strict === '1' string comparison against an integer value, plus the unconditional fallback block in onUserAfterSave.
| Labels |
Added:
No Code Attached Yet
bug
|
||
please test #48091