PR-7.0-dev Pending

User tests: Successful: Unsuccessful:

avatar TLWebdesign
TLWebdesign
15 Oct 2026

Summary of Changes

Nested::delete() dispatched two generic events, onBeforeDelete and onAfterDelete, carrying only the primary key, next to the typed onTableBeforeDelete and onTableAfterDelete events every table dispatches. The generic pair was tagged @deprecated 5.3 will be removed with 7.0 without replacement. This removes it and the now unused Joomla\Event\Event import.

Nothing in core listens to the generic names. A listener needs onTableBeforeDelete / onTableAfterDelete instead (Joomla\CMS\Event\Table\BeforeDeleteEvent / AfterDeleteEvent), which carry the table as subject and the same pk.

Testing Instructions

  1. Code review: grep -rn "'onBeforeDelete'\|'onAfterDelete'" libraries administrator components plugins finds nothing.
  2. Apply the patch. Administrator: Content > Categories, trash a category and empty the trash; the category is deleted and the Latest Actions module logs it.
  3. Administrator: Menus > Main Menu, trash a menu item and empty the trash; same result.
  4. Administrator: Components > Tags, trash a tag and empty the trash.
  5. Turn debug on and check no PHP notice, warning or deprecation appears during steps 2 to 4.

Actual result BEFORE applying this Pull Request

Deleting nested items works; the generic events fire with nothing listening.

Expected result AFTER applying this Pull Request

Deleting nested items works the same; only the typed table events fire.

Link to documentations

  • No documentation changes for guide.joomla.org needed
  • Pull Request link for manual.joomla.org: joomla/Manual#719
avatar TLWebdesign TLWebdesign - open - 15 Oct 2026
avatar TLWebdesign TLWebdesign - change - 15 Oct 2026
Status New ⇒ Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Oct 2026
Category ⇒ Libraries
avatar TLWebdesign TLWebdesign - change - 15 Oct 2026
The description was changed
avatar TLWebdesign TLWebdesign - edited - 15 Oct 2026
avatar HLeithner HLeithner - close - 15 Oct 2026
avatar HLeithner HLeithner - merge - 15 Oct 2026
avatar HLeithner HLeithner - change - 15 Oct 2026
Status Pending ⇒ Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 ⇒ 2026-10-15 14:42:22
Closed_By ⇒ HLeithner
Labels Added: PR-7.0-dev

Add a Comment

Login with GitHub to post a comment