User tests: Successful: Unsuccessful:
Pull Request for Issue #46472 .
This reverts #46621 and corrects the original cause, explaining somewhat why it is not directly reproducible.
It was difficult for me to reproduce the issue, but finally (perhaps after setting ‘Error Reporting’ to system default and disabling ‘Debug System’ and ‘Log Almost Everything’) I was able to reproduce the issue and saw that the list of parent menu items was empty and the suggested workaround of selecting a different menu was also reproduced.
#46621 (comment)
The ID of the article, contact or category is incorrectly passed as the ID for the menu item (edit data), but this should be 0 for a new item. And since the id is not 0, the filtering of the field is incorrect.
Parent Item dropdown is usually empty
Parent item dropdown has the correct items
Please select:
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_categories com_contact com_content JavaScript Repository NPM Change |
@ceford @coolcat-creations @ThomasFinnern if someone of you is able to test this PR, it would be great, as we need this to fix the CI System Tests failures, thank you in advance
I have tested this item ✅ successfully on 68c7b2f
Works as expected
I have tested this item ✅ successfully on 68c7b2f
| Status | Pending | ⇒ | Ready to Commit |
RTC
| Labels |
Added:
RTC
NPM Resource Changed
bug
PR-5.4-dev
|
||
✅ Final test before merge with JBT
administrator/components/com_menu/MenuItem.cy.js failed with undefined clearChoicesconstantlynpm run build:jsadministrator/components/com_menu/MenuItem.cy.js passed three times| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-01-14 08:44:08 |
| Closed_By | ⇒ | muhme |
Thank you very much @heelc29 for your contribution in fixing the root cause. Thank you very much @coolcat-creations and @ceford for testing it so quickly.
@muhme the bug was always there. Maybe you tried to create a new menu item instead of creating a menu item from an article? You have a Joomla article and click from there in “Save to menu”. I don't understand how you could not reproduce it. :)
@coolcat-creations Yes, I create an menu item via 'Save to Menu'. I am also don't understand why I could not reproduce the problem 😄 Anyway, this Morning I see the issue on one of my Joomla test instances on the Internet, and after setting ‘Error Reporting’ to Maximum and enabling ‘Debug System’ and ‘Log Almost Everything’, the issue disappears. Nevertheless, thank you for confirming that you saw the bug before the PR. 👍
Quick pre-test to check if 46679 is needed:
administrator/components/com_menu/MenuItem.cy.jsthe 3rd and 4th tests are failing withundefined (reading 'clearChoices')three times