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
The site/admin filter works
The filter never changes from site
| Labels |
Added:
No Code Attached Yet
|
||
| Labels |
Added:
bug
|
||
Found the problem - it doesnt switch because the second filter to select the menu needs to be unselected
@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."
@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.
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?
No thats not the problem.
The problem is that you cannot switch from site to admin menu items in the drop down filter
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
Too bad this bug was not fixed with 5.2.1. As long as the bug persists, we have to stay with 5.1 ;(