RTC NPM Resource Changed bug PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
1 Apr 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

avatar Hackwar Hackwar - open - 1 Apr 2024
avatar Hackwar Hackwar - change - 1 Apr 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Apr 2024
Category JavaScript Repository NPM Change
avatar brianteeman
brianteeman - comment - 1 Apr 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

avatar Hackwar Hackwar - change - 2 Apr 2024
Labels Added: NPM Resource Changed PR-4.4-dev
avatar brianteeman
brianteeman - comment - 3 Apr 2024

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

avatar exlemor exlemor - test_item - 3 Apr 2024 - Tested successfully
avatar exlemor
exlemor - comment - 3 Apr 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.
avatar fgsw fgsw - test_item - 10 Apr 2024 - Tested successfully
avatar fgsw
fgsw - comment - 10 Apr 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.

avatar richard67 richard67 - change - 14 Apr 2024
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 14 Apr 2024

RTC


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

avatar richard67
richard67 - comment - 14 Apr 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.

avatar richard67
richard67 - comment - 18 Apr 2024

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.

avatar richard67
richard67 - comment - 20 Apr 2024

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

avatar exlemor
exlemor - comment - 20 Apr 2024

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

avatar MacJoom MacJoom - change - 26 Apr 2024
Labels Added: RTC bug
avatar MacJoom MacJoom - change - 27 Apr 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-04-27 09:34:11
Closed_By MacJoom
avatar MacJoom MacJoom - close - 27 Apr 2024
avatar MacJoom MacJoom - merge - 27 Apr 2024
avatar MacJoom
MacJoom - comment - 27 Apr 2024

Thank you!

Add a Comment

Login with GitHub to post a comment