User tests: Successful: Unsuccessful:
Pull Request for Issue #42149 .
Kind of b/c fix.
Adding a "loaded" flag to be able to distinct initialised $modules array from empty.
And fixed some comments.
Add to sytem plugin the event listener:
public function onPrepareModuleList(\Joomla\CMS\Event\Module\PrepareModuleListEvent $event)
{
$event->updateModules([]);
$event->setLoaded(true);
}
Example add it around here
joomla-cms/plugins/system/sef/src/Extension/Sef.php
Lines 26 to 27 in 4c799de
And visit the site page.
All modules is rendered
No modules is rendered, only content is rendered
Please select:
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
I have updated description
what should I look for before and after applying the patch
Any page, can be also administrator. you will notice when the modules will disappear ?
After applying the patch, with the code inserted as suggested I see all of the frontend and backend modules have disappeared. However, I don't really know enough to be aware of any possible side effects. Better for me to leave testing to someone else!
I'm not really happy with the solution, I'm also not convinced that this is needed at all. It might be better done in some temp storage/variable for the current rendering. Also other plugins have to understand this behavior which sounds at least to me very uncommon.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-10-31 11:31:36 |
Closed_By | ⇒ | Fedik | |
Labels |
Added:
Feature
bug
PR-5.0-dev
|
See: #42149 (comment)
Sorry, I do not understand exactly how to test. I have a test site clone of joomla-cms with 5 checked out and test data installed. Exactly which plugin should that code be added to and exactly what should I look for before and after applying the patch.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42197.