No Code Attached Yet bug
avatar brianteeman
brianteeman
4 Nov 2024

Steps to reproduce the issue

Create an admin menu module
Create a link of type menu items
Publish this additional admin menu module in position menu
Click on the newly created menu item link

Expected result

The site/admin filter works

Actual result

The filter never changes from site

System information (as much as possible)

Additional comments

avatar brianteeman brianteeman - open - 4 Nov 2024
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Nov 2024
avatar hytsch
hytsch - comment - 8 Nov 2024

Too bad this bug was not fixed with 5.2.1. As long as the bug persists, we have to stay with 5.1 ;(

avatar alikon
alikon - comment - 8 Nov 2024

should this be solved with #44426 ?

avatar brianteeman
brianteeman - comment - 8 Nov 2024

No. #44426 is to fix the code Hannes removed in error from com_content. Possibly this issue can be fixed with another PR to fix the code removed from com_modules

avatar Hackwar Hackwar - change - 28 Nov 2024
Labels Added: bug
avatar Hackwar Hackwar - labeled - 28 Nov 2024
avatar brianteeman
brianteeman - comment - 10 Dec 2024

Found the problem - it doesnt switch because the second filter to select the menu needs to be unselected

avatar brianteeman
brianteeman - comment - 10 Dec 2024

Perhaps someone who understand the javascript can fix this.
Basically what is needed is for the second filter to be set to "- Select Menu -" whenever the first filter is changed from Site to Admin and vice versa

Image

avatar Hemang360
Hemang360 - comment - 27 Mar 2025

@brianteeman I was able to reproduce the issue without adding a new menu.
Navigating to Menu → Bottom Menu does not update the site/admin filter, which remains stuck on "site."

avatar brianteeman
brianteeman - comment - 27 Mar 2025

@Hemang360 thats because you have installed the sample data which includes multiple menus. My instructions were for everyone so they may not have multiple menus already.

avatar adarshdubey03
adarshdubey03 - comment - 9 Mar 2026

Hi @brianteeman,

I have been looking into this issue and wanted to confirm my understanding before going further.
I reproduced the bug by creating an additional Administrator Menu module with a link to Menu Items and publishing it in the menu position. When opening the page through that custom admin menu, the filter always shows Site instead of Administrator.
While debugging, I noticed the generated link looks like this:

index.php?option=com_menus&view=items&menutype=

Since it doesn’t include client_id=1, the page appears to load with the default client (Site).
I also explored the SearchTools JavaScript and tried resetting the menutype filter when client_id changes, based on your comment that the second filter needs to be unset. However, that doesn’t seem to address the initial state when the page is opened from the admin menu.

Before preparing a PR, could you confirm whether the intended fix should be adjusting the admin menu link generation (like adding client_id=1), or handling it in JavaScript when the client filter changes?

avatar brianteeman
brianteeman - comment - 9 Mar 2026

No thats not the problem.

The problem is that you cannot switch from site to admin menu items in the drop down filter

Image

This is because when you try to change that filter the second filter should be reset so that you can select which admin menu (not item) you want but thats not possible

I believe that when you change that to Admin then the second filter should be changed to only display admin menus. It looks like there is some JS that tries to do that but it doesnt work or I misread the JS which is perfectly possible and there is no code to do that and its needed

Add a Comment

Login with GitHub to post a comment