? ? Pending

User tests: Successful: Unsuccessful:

avatar ggppdk
ggppdk
22 Sep 2018

Pull Request for Issue #22271

Summary of Changes

This PR allows to see the full sub-tree of menu items when you filter by a specific parent menu item

Also the max levels filter is respected
e.g. to view only the direct children of the parent menu item, user can select a (max) level of "1"

Testing Instructions

  1. Go to menu items manager
  2. Filter by a specific menu item (please choose a menu item that has a subtree with 2 or more levels)

Expected result

You see the full sub-tree of menu items

Actual result

You see only the direct children (1st level descedants)

Documentation Changes Required

None

avatar ggppdk ggppdk - open - 22 Sep 2018
avatar ggppdk ggppdk - change - 22 Sep 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Sep 2018
Category Administration com_menus
avatar ggppdk ggppdk - change - 22 Sep 2018
Labels Added: ?
avatar tonypartridge
tonypartridge - comment - 22 Sep 2018

I have tested this item successfully on 59c1c9d

Great thanks @ggppdk works well. Sorry for my oversight when implementing this feature originally.


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

avatar tonypartridge tonypartridge - test_item - 22 Sep 2018 - Tested successfully
avatar richard67
richard67 - comment - 22 Sep 2018

I have tested this item successfully on 59c1c9d


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

avatar richard67 richard67 - test_item - 22 Sep 2018 - Tested successfully
avatar richard67
richard67 - comment - 22 Sep 2018

Works as follows:

  • No filter on max. levels => Full tree shown for selected parent menu.
  • Filter on max. levels = n => Tree shown for max. n-1 levels of the selected parent menu (including the parent, i.e. n=2 is like old behavior without this PR).
    @ggppdk Question: Is that expected, n=2 shows 1 level because parent is counted in levels but not shown in result?
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22319.
avatar richard67
richard67 - comment - 22 Sep 2018

@ggppdk Question: Is that expected what I observed during my test, that max. levels=2 shows 1 level, i.e. only the direct children, because parent is counted in levels but not shown in result? In this case testing instructions were not correct.

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Sep 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Sep 2018

Ready to Commit after two successful tests.

avatar ggppdk
ggppdk - comment - 22 Sep 2018

@richard67

the result that you are getting is strange

the parent menu item (aka the root of the sub-tree) is supposed to be (depth) level 0
and anyway it is not be visible with current code

when we filter by max-level 1 , we get children (=direct descendants only), aka the old behavior
when we filter by max-level 2 , we get children , and grandchildren, menu item items

can you do a rebuild, and then also make sure you have latest version of this branch and retest ?

avatar richard67
richard67 - comment - 22 Sep 2018

@ggppdk You are right, now it works as described.

avatar ggppdk
ggppdk - comment - 22 Sep 2018

@richard67

thanks for re-testing and confirmation

I think you were testing with code getting that was having this effect
#22322 (comment)

avatar mbabker mbabker - change - 22 Sep 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-22 15:01:33
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 22 Sep 2018
avatar mbabker mbabker - merge - 22 Sep 2018

Add a Comment

Login with GitHub to post a comment