-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joomla 3.8.0: Disabled com_fields displayed in admin menu #18134
Conversation
Getting update
Getting Update
Getting update
Joomla 3.8.0 displays com_fields link in menu, ven when com_fields is disabled.
I have tested this item ✅ successfully on 0e0bdbf This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18134. |
@izharaazmi Please test this if you have a moment. |
I have tested this item ✅ successfully on 0e0bdbf This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18134. |
RTC after two successful tests. |
The problem with this code is that it increases drastically the queries. |
@infograf768 What do you mean? |
@izharaazmi see #18264 |
I guess we could have done
|
Your suggestion only checks for com_fields, however the current code checks for all components and excludes a menu item if the related component is disabled/not installed. |
@izharaazmi |
Ok, I'll test it |
Okay. I tested it. The checks for items under component container are done internally so they are not needed, fine. For core (protected) components they cannot be disabled from UI, fine. If we do have any other situation with any components we need this test for them. One such is @infograf768 I think we must work to minimise the duplicate queries but restricting to com_fields does not seem right. What do you suggest? |
@izharaazmi |
Pull Request for Issue #18046 .
Summary of Changes
Added check to JAdminMenuCSS for disabled or not installed components.
Testing Instructions
Disable com_fields, and see the menu. Links to fields components are present, leading to 404 page.
Apply this patch, and see the menu again.