When setting a depth on a sub menu, say level 2 -> 4, and the 2nd level has children, the has_children array is empty, but when setting the depth to Unlimited, it works.

Comments

johnalbin’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

You've haven't adequately described the issue.

I've used "depth" many times.

blackdog’s picture

Category: support » bug

Sorry if I was unclear.

The problem is that when setting a depth in the block, the toplevel menu item doesn't get a 'collapsed' CSS class, because has_children in the array is empty. Setting the depth to 'Unlimited' puts a 'collapsed' class there.

johnalbin’s picture

Title: has_children empty if depth is set » collapsed menu items get "leaf" class when using "depth" option
Status: Postponed (maintainer needs more info) » Active

Confirmed.

johnalbin’s picture

Title: collapsed menu items get "leaf" class when using "depth" option » Collapsed menu items get "leaf" class when using "depth" option
Status: Active » Fixed

Turns out this was easy to fix! :-) Thanks for the bug report!

Fixed.

johnalbin’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.