RTC Unit/System Tests bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
15 Jul 2026

Pull Request resolves #48089.

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

log 1 time

Testing Instructions

Steps to reproduce:
Go to Users: Manage.
Select a user, click Block (or Unblock)
Go to Users: Actions Log.

Actual result BEFORE applying this Pull Request

2 entries

Expected result AFTER applying this Pull Request

1 entry

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar alikon alikon - open - 15 Jul 2026
avatar alikon alikon - change - 15 Jul 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jul 2026
Category Front End Plugins
avatar alikon alikon - change - 15 Jul 2026
Labels Added: PR-5.4-dev
avatar alikon
alikon - comment - 15 Jul 2026

thanks i'll check it later

avatar alikon
alikon - comment - 16 Jul 2026

@shinderohanoffical should be fixed now

avatar shinderohanoffical
shinderohanoffical - comment - 16 Jul 2026

@alikon Tested — the original duplicate block/unblock entries are gone now, and the earlier regression on plain "user updated" logging is also fixed. 👍

One more thing I noticed going through the diff: in onUserAfterSave(), addLog() is now only reached via the $task === 'block'/'unblock' branch (which returns early) or the $action === 'update' branch. That means $action === 'add' (creating a new user) and $action === 'register' (self-registration) never reach an addLog() call anymore — before this PR, those were covered by the generic unconditional addLog() call that got moved/scoped down in an earlier commit.

Can you confirm whether adding a new user or registering still shows up in the Action Log on your end? On my test it doesn't seem to be logged anymore.

avatar alikon
alikon - comment - 16 Jul 2026

i'll check more carefully this time 😇

avatar joomla-cms-bot joomla-cms-bot - change - 16 Jul 2026
Category Front End Plugins Front End Plugins JavaScript Unit Tests
avatar alikon alikon - change - 16 Jul 2026
Labels Added: Unit/System Tests
avatar alikon
alikon - comment - 17 Jul 2026

@shinderohanoffical
i've added some system tests to cover some scenarios

avatar shinderohanoffical
shinderohanoffical - comment - 17 Jul 2026

@alikon Looks good now — I traced through the updated logic and the final addLog() call at the end of the method covers add/register/update correctly (outside the if blocks now), while the toolbar block/unblock path still only logs once via the early return. Nice touch adding the Cypress tests for all four scenarios too.
thanks!

avatar brianteeman brianteeman - test_item - 17 Jul 2026 - Tested successfully
avatar brianteeman
brianteeman - comment - 17 Jul 2026

I have tested this item ✅ successfully on fee4c25


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48091.

avatar brianteeman
brianteeman - comment - 17 Jul 2026

I have tested this item ✅ successfully on fee4c25


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48091.

avatar CSGoat0 CSGoat0 - test_item - 17 Jul 2026 - Tested successfully
avatar CSGoat0
CSGoat0 - comment - 17 Jul 2026

I have tested this item ✅ successfully on fee4c25


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48091.

avatar CSGoat0
CSGoat0 - comment - 17 Jul 2026

I have tested this item ✅ successfully on fee4c25


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48091.

avatar richard67 richard67 - change - 17 Jul 2026
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 17 Jul 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48091.

avatar richard67
richard67 - comment - 17 Jul 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48091.

avatar muhme muhme - change - 18 Jul 2026
Labels Added: RTC bug

Add a Comment

Login with GitHub to post a comment