Skip to content
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

[4.4] Adminmenu: Toggle for duplicate menus #43192

Merged
merged 3 commits into from
Apr 27, 2024

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Apr 1, 2024

Pull Request for Issue #32934 .

Summary of Changes

When the backend menu is duplicated, the JS to toggle the sidebar doesn't work for the second menu.

Testing Instructions

  1. Create a second menu module in the administrator, assign it to the menu position and select the "Joomla Main Menu" preset for the module.
  2. Click on the toggle button to close the sidebar.
  3. Click on the "Content" menu item in the second module.

Actual result BEFORE applying this Pull Request

The sidebar stays closed.

Expected result AFTER applying this Pull Request

The sidebar opens, like for the menu entries in the first menu module.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@brianteeman
Copy link
Contributor

brianteeman commented Apr 1, 2024

When the backend menu is duplicated,

If you do this as per the original report by duplicating the existing module then you break accessibility as you have multiple things using the same id

but thats off topic

@brianteeman
Copy link
Contributor

This may well fix the bug in 4.4 but the js was rewritten for j5.1 (#42784) so it will not be able to be upmerged.

My recommendation would be to close this pr for 4.4 and redo it for 5.1

@exlemor
Copy link

exlemor commented Apr 3, 2024

I have tested this item ✅ successfully on ed76cd4

I confirm that it was a success test for me.

PHP 8.2.17, MySQL 8.0.36
CentOS v7.9.2009 STANDARD kvm cPanel v110.0.24


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43192.

@fgsw
Copy link

fgsw commented Apr 10, 2024

I have tested this item ✅ successfully on ed76cd4


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43192.

@richard67 richard67 added bug and removed bug labels Apr 14, 2024
@richard67
Copy link
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43192.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Apr 14, 2024
@richard67 richard67 added the bug label Apr 14, 2024
@richard67
Copy link
Member

richard67 commented Apr 14, 2024

@Hackwar As @brianteeman correctly mentioned in his previous comment, this fix can't be merged up into 5.1-dev as it is because in 5.1-dev the js was refactored. It would need to make the same changes as here but in these 2 lines:

Could you make a PR for 5.1-dev, too?

It needs both, I think, this one here for 4.4-dev and another one for 5.1-dev.

@richard67
Copy link
Member

Could you make a PR for 5.1-dev, too?

It needs both, I think, this one here for 4.4-dev and another one for 5.1-dev.

@Hackwar As I did not get any response to my comment, I've decided to create the 5.1-dev PR myself. Thanks for the fix here. PR for 5.1-dev is #43308 .

To all testers: Could you also test my PR #43308 for 5.1? Thanks in advance.

@richard67
Copy link
Member

@exlemor @fgsw Could you also test my PR #43308 with the same change for 5.1? Thanks in advance.

@exlemor
Copy link

exlemor commented Apr 20, 2024

Tested #43308 for J5.1.x - thanks @richard67.

@MacJoom MacJoom self-assigned this Apr 26, 2024
@MacJoom MacJoom merged commit 886611d into joomla:4.4-dev Apr 27, 2024
3 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Apr 27, 2024
@MacJoom
Copy link
Contributor

MacJoom commented Apr 27, 2024

Thank you!

@Quy Quy added this to the Joomla! 4.4.5 milestone Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug NPM Resource Changed This Pull Request can't be tested by Patchtester PR-4.4-dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants