bug: deleteFromPlatforms() uses deprecated triggerEvent() instead of Event dispatcher #228
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
CrossPostDispatcher::deleteFromPlatforms()at line 601 uses the legacy Joomla 4 pattern to collect service plugins:But the
dispatch()method andQueueProcessor::getServicePluginMap()use the correct Joomla 5/6 Event-based pattern with ArrayAccess:The
triggerEvent()method was deprecated in Joomla 4.2 and may not correctly pass by-reference arrays. In Joomla 6 this could causedeleteFromPlatforms()to find zero service plugins, making delete operations silently fail.Fix
Replace lines 599-604 with the same Event-based pattern used in
dispatch()andgetServicePluginMap().Impact
source/packages/com_mokosuitecross/src/Helper/CrossPostDispatcher.phpBranch created:
feature/228-bug-deletefromplatforms-uses-deprecated-