? ? Pending

User tests: Successful: Unsuccessful:

avatar Harmageddon
Harmageddon
20 Nov 2020

Summary of Changes

If an item is set to hidden / not show, it doesn't make any sense to display an empty <li> item.

Testing Instructions

Because it is a backend module, this is a bit tricky.

Important: Don't activate the "Recovery mode" for the menu, because it seems to be bugged!

  1. At Menus - Manage, select "Administrator" and create a new menu.
  2. In this new administrator menu, create one basis menu item on the top level, and at least three menu items that are children to this basis menu item.
  3. For one of these child items, under "Link Type", set "Display in Menu: No".
  4. Go to the Home Dashboard.
  5. Click on "Add Module to the Dashboard".
  • Type: "Administrator Dashboard Menu"
  • Menu: select your previously created menu
  • Enter a module title and save the module.
  1. Look at the newly created module.

Actual result BEFORE applying this Pull Request

At the place, where the hidden item would be, there is an empty <li></li> tag, which is displayed as empty space between two lines.
Screenshot_2020-11-20 Home Dashboard - Joomla 4 Test Site - Administration 2

Expected result AFTER applying this Pull Request

Only the items that are not hidden are displayed.
Screenshot_2020-11-20 Home Dashboard - Joomla 4 Test Site - Administration

Documentation Changes Required

None

avatar Harmageddon Harmageddon - open - 20 Nov 2020
avatar Harmageddon Harmageddon - change - 20 Nov 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Nov 2020
Category Modules Administration
avatar Harmageddon Harmageddon - change - 20 Nov 2020
The description was changed
avatar Harmageddon Harmageddon - edited - 20 Nov 2020
avatar ChristineWk ChristineWk - test_item - 20 Nov 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 20 Nov 2020

I have tested this item successfully on 873693d


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

avatar Harmageddon Harmageddon - change - 20 Nov 2020
Labels Added: ?
avatar chmst chmst - test_item - 21 Nov 2020 - Tested successfully
avatar chmst
chmst - comment - 21 Nov 2020

I have tested this item successfully on a8ba893

On Code inspect


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

avatar gostn gostn - test_item - 21 Nov 2020 - Tested successfully
avatar gostn
gostn - comment - 21 Nov 2020

I have tested this item successfully on a8ba893


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

avatar alikon alikon - change - 21 Nov 2020
Status Pending Ready to Commit
avatar alikon
alikon - comment - 21 Nov 2020

RTC


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

avatar infograf768 infograf768 - change - 21 Nov 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-11-21 10:02:11
Closed_By infograf768
Labels Added: ?
avatar infograf768 infograf768 - close - 21 Nov 2020
avatar infograf768 infograf768 - merge - 21 Nov 2020
avatar infograf768
infograf768 - comment - 21 Nov 2020

Tks.

avatar adj9 adj9 - test_item - 21 Nov 2020 - Not tested
avatar adj9
adj9 - comment - 21 Nov 2020

I have not tested this item.

I have no possibility to select the menu.

In Administrator Dashboard Menu I don't have the created menu items.


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

avatar Harmageddon
Harmageddon - comment - 21 Nov 2020

@adj9 How does your menu structure look? Do you have one parent menu item and several sub-menu items? Because this module only displays submenus, not entire menus. So the structure of "Test Menu" should look like this:

Add a Comment

Login with GitHub to post a comment