User tests: Successful: Unsuccessful:
Pull Request for Issue #32456.
don't show items from disabled component in mod_submenu
see #32456.
see #32456.
no items from disabled components are shown
let's see how many
Status | New | ⇒ | Pending |
Category | ⇒ | Modules Administration |
Labels |
Added:
?
|
btw, we have similar in mod_menu also
joomla-cms/administrator/modules/mod_menu/src/Menu/CssMenu.php
Lines 312 to 317 in fa6cc5d
so all should be good
Title |
|
I have tested this item
Before applying patch, "Manage" list on System Dashboard had 9 items:
Extensions, Languages, Content Languages, Language Overrides, Content Security Policy, Plugins, Redirects, Site Modules, Administrator Modules
After applying patch, without turning off any components, some items disappeared:
Languages, Content Languages, Language Overrides
It seems these three Language related items are not following the same configuration as the other items in the list.
As Language component is a protected one, it can't be disabled, but I'm not sure why it's not otherwise appearing.
Aside from the Language items, the PR works as expected when I turned off either CSP or Redirects as two items available to disable in that dashboard module.
@particthistle I think the error here is not related to this PR. I don't understand how menu presets work, but someone familiar with that concept should check https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_menus/presets/system.xml#L127-L149 to see why element="com_language", not element="com_languages" (I think it is typos). One that issue is fixed, the error you reported here won't happen.
@particthistle I think the error here is not related to this PR. I don't understand how menu presets work, but someone familiar with that concept should check https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_menus/presets/system.xml#L127-L149 to see why element="com_language", not element="com_languages" (I think it is typos). One that issue is fixed, the error you reported here won't happen.
@joomdonation @particthistle Who wants to make a PR?
Category | Modules Administration | ⇒ | Administration com_menus Modules |
better to do it in this pr imho
please test again
I have tested this item
All good this time around.
Glad it was something easy for you to resolve @alikon as I wouldn't have known where to start to fix that up.
I have tested this item
Tested successfully in Beta8-dev of 3 March in Wampserver 3.2.4 using PHP 8.0.2.
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-03-05 12:38:19 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
LGTM. Nice work everyone!
this actually looks much better than #32539
because ComponentHelper already have a pre-loaded list of available components.