RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar rdeutz
rdeutz
31 Aug 2025

Pull Request for Issue #45584 .

Summary of Changes

At some moment in the past we changed the events for the Table* classes from onAction to onTableAction. It was obviously missed to make this change for the delete method of the nested table class. This results in the situation that history entires for categories and tags are not deleted.

a) This fix is a bug fix but also kind of b/c break.
We need to document the b/c break. I would expect that It is unlikely that the event is used.

b) Further more we are not cleaning up the existing entires in the history table for not longer existing tags and categories.
Maybe something we can do in a helath checker or pre-update check, but not as part of this PR.

Testing Instructions

  • Create one tag
  • Check database table __history and see item_id entry com_tags.tag.id
  • Trash and delete the tag

Actual result BEFORE applying this Pull Request

The database table __history entry for com_tags.tag.id is still existing

Expected result AFTER applying this Pull Request

The database table __history entry for com_tags.tag.id is not existing

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar rdeutz rdeutz - open - 31 Aug 2025
avatar rdeutz rdeutz - change - 31 Aug 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Aug 2025
Category Libraries
avatar rdeutz rdeutz - change - 31 Aug 2025
The description was changed
avatar rdeutz rdeutz - edited - 31 Aug 2025
avatar rdeutz rdeutz - change - 31 Aug 2025
Labels Added: bug b/c break PR-5.3-dev
avatar exlemor exlemor - test_item - 1 Sep 2025 - Tested successfully
avatar exlemor
exlemor - comment - 1 Sep 2025

I have tested this item ✅ successfully on 401b41a

Hi there, I was able to test it successfully! Thanks @rdeutz


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

avatar muhme muhme - test_item - 5 Sep 2025 - Tested successfully
avatar muhme
muhme - comment - 5 Sep 2025

I have tested this item ✅ successfully on 401b41a

Tested with JBT, before the PR with 5.3-dev branch

  • Seen the error before with com_tags.tag and com_content.category

Installed the PR with graft full package

  • Enabled 'Debug System' and 'Log Almost Everything'
  • Created a tag with one history entry and another tag with three history entries, all history entries are deleted together with the tags
  • Created a content category with one history entry and another content category with three history entries, all history entries are deleted together with the content categories
  • Disabled versioning
    • Component > Tags > Options > Enable Versions > No
      • Created tag, trashed and deleted
    • Content > Categories > Options > Editing Layout > Enable Versions > No
      • Created content category, trashed and deleted
  • Checked administrator/logs/* and PHP log
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46020.
avatar alikon alikon - change - 5 Sep 2025
Status Pending Ready to Commit
avatar alikon
alikon - comment - 5 Sep 2025

RTC


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

avatar bembelimen
bembelimen - comment - 6 Sep 2025

We should call the old event, too and deprecate it. Otherwise we make all plugins, which are using the wrong methods broken.

avatar rdeutz rdeutz - change - 7 Sep 2025
Labels Added: RTC Updates Requested
avatar rdeutz
rdeutz - comment - 7 Sep 2025

@bembelimen done, called old event and depreciated it as requested

avatar muhme muhme - change - 8 Sep 2025
Status Ready to Commit Pending
avatar muhme
muhme - comment - 8 Sep 2025

Reset to “Pending” as there have been code changes


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

avatar rdeutz rdeutz - change - 8 Sep 2025
Labels Removed: RTC Updates Requested
avatar rdeutz
rdeutz - comment - 8 Sep 2025

Reset to “Pending” as there have been code changes

It is only bringing back the old event call, would be a surprise if that breaks something.

avatar muhme
muhme - comment - 8 Sep 2025

Reset to “Pending” as there have been code changes
It is only bringing back the old event call, would be a surprise if that breaks something.

Sorry, I don't have this overview. Does anyone else want to set RTC again or should I just retest?

avatar rdeutz
rdeutz - comment - 9 Sep 2025

@muhme retest would be fine but I don't think we need two tests.

avatar muhme muhme - test_item - 9 Sep 2025 - Tested successfully
avatar muhme
muhme - comment - 9 Sep 2025

I have tested this item ✅ successfully on c293027

After branch update, successfully tested again as outlined in #46020 (comment)


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

avatar richard67 richard67 - change - 9 Sep 2025
Status Pending Ready to Commit
avatar richard67 richard67 - change - 9 Sep 2025
Status Ready to Commit Pending
avatar richard67 richard67 - change - 9 Sep 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 9 Sep 2025

RTC


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

avatar richard67
richard67 - comment - 9 Sep 2025

@rdeutz Now as the old event is called, too, can the "b/c break" label be removed?

avatar brianteeman
brianteeman - comment - 9 Sep 2025

It says deprecated without replacement and then goes on to say use ....

Surely that is the replacement

avatar richard67
richard67 - comment - 9 Sep 2025

It says deprecated without replacement and then goes on to say use ....

Surely that is the replacement

@brianteeman Not sure if it is really a replacement as they are not the same events, and the calls to the old events will be removed without replacement.

@rdeutz What do you think? Maybe just remove the , use onTable...Delete event at the end of the deprecation comment?

avatar richard67
richard67 - comment - 9 Sep 2025

It says deprecated without replacement and then goes on to say use ....

Surely that is the replacement

@brianteeman Not sure if it is really a replacement as they are not the same events, and the calls to the old events will be removed without replacement.

@rdeutz What do you think? Maybe just remove the , use onTable...Delete event at the end of the deprecation comments?

avatar laoneo
laoneo - comment - 9 Sep 2025

This has to go into 5.4 as we don't do deprecations in patch releases.

avatar rdeutz rdeutz - change - 10 Sep 2025
Labels Added: RTC
avatar rdeutz
rdeutz - comment - 10 Sep 2025

It is a bugfix so it is 5.3.

For the message I guess you can argue in many ways, I made what Richard suggested.

avatar richard67 richard67 - change - 10 Sep 2025
Title
[5.3] Change the table event name from onBeforeDelete to on TableBeforeDelete
[5.4] Change the table event name from onBeforeDelete to on TableBeforeDelete
avatar richard67 richard67 - edited - 10 Sep 2025
avatar richard67 richard67 - change - 10 Sep 2025
Labels Added: PR-5.4-dev
Removed: b/c break PR-5.3-dev
avatar richard67
richard67 - comment - 10 Sep 2025

Rebased to 5.4-dev. RTC is still valid as it was a clean rebase.

avatar muhme
muhme - comment - 11 Sep 2025

✅ Final retest before merge as in #46020 (comment)

avatar muhme muhme - change - 11 Sep 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-09-11 09:44:44
Closed_By muhme
avatar muhme muhme - close - 11 Sep 2025
avatar muhme muhme - merge - 11 Sep 2025
avatar muhme
muhme - comment - 11 Sep 2025

Thank you @RobertDeutz for your contribution. Thank you @richard67, @laoneo, @bembelimen and @brianteeman for support. Thank you @exlemor for testing.

Add a Comment

Login with GitHub to post a comment