Parent menus with no children appear as parent of next sibling

mstrelan - September 11, 2009 - 03:38
Project:footermap: a footer site map
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

If you have a structure like this ...

Home
About us
--Contact us
--Visit us
Whats on
--Events
--Attractions

It appears like this ...

Home
--About us
--Contact us
--Visit us
Whats on
--Events
--Attractions

Patch attached, needs testing

AttachmentSize
footermap.module.patch14.7 KB

#1

mradcliffe - September 15, 2009 - 15:37

I'll have to take a look at this in a couple of weeks. I'll be away on vacation starting tomorrow.

#2

mradcliffe - October 8, 2009 - 18:48
Version:6.x-1.5» 6.x-1.x-dev
Status:active» needs work

I don't see any changes in this patch. Can you resubmit based on DRUPAL-6--1 tag?

#3

mstrelan - October 13, 2009 - 03:43

The difference is the position of the braces in this bit

            if( $h->has_children == 1 )
            {
                footermap_get_menu($h->mlid, $level+1, $limit, $mapref, $arrcnt,array($h->menu_name => $h->menu_name));
                if( $level == 1 )
                    $arrcnt++;
            }

#4

mradcliffe - October 14, 2009 - 15:06
Status:needs work» patch (to be ported)

Okay, thanks, I've committed this.

#5

mradcliffe - November 19, 2009 - 19:42
Status:patch (to be ported)» fixed
 
 

Drupal is a registered trademark of Dries Buytaert.