Download & Extend

Parent menus with no children appear as parent of next sibling

Project:footermap: a footer site map
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

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

#2

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

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

Status:needs work» patch (to be ported)

Okay, thanks, I've committed this.

#5

Status:patch (to be ported)» fixed

#6

Status:fixed» closed (fixed)

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

nobody click here