Closed (fixed)
Project:
Menu Block
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2008 at 16:04 UTC
Updated:
16 Dec 2008 at 03:12 UTC
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
Comment #1
johnalbinYou've haven't adequately described the issue.
I've used "depth" many times.
Comment #2
blackdog commentedSorry 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.
Comment #3
johnalbinConfirmed.
Comment #4
johnalbinTurns out this was easy to fix! :-) Thanks for the bug report!
Fixed.
Comment #5
johnalbinI goofed the fix for this issue. See #341436: Depth-limited leaves that have children get "collapsed" icon