Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Sub-menu items are doubled

#141

It seems commit http://github.com/lux/sitellite/commit/5530ccf14ae7aeccd75c1782c280... cause sub-menu items to appear doubled. Let say menu item A have children a, b and c, I will see a, b, c, a, b, c.

Reported by Charles Brunet · June 30th, 2009 @ 08:15 PM

State: resolved
Milestone: 5.0.3
Assigned to: lux lux

Activity

  1. Charles Brunet
    Charles Brunet
    • State changed from new to open

    John, could you check what that commit was supposed to do. Can we revert it?

    July 27th, 2009 @ 03:51 PM

  2. lux
    lux

    This commit fixed a problem with breadcrumb menu items inserted through PHP instead of being part of the site tree. It looks like the problem is in line 459. It should probably be changed to something like this:

    if ($this->{'items_' . $id}->parent != $this->{'items_' . $ref}) {
        $this->{'items_' . $ref}->children[] =& $this->{'items_' . $id};
        $this->{'items_' . $id}->parent =& $this->{'items_' . $ref};
    }
    

    That way it doesn't add the menu item to ->children[] if it's already a child of the parent item. I haven't tested that out, but it looks like that code might fix it. Let me know what menu/nav box to use to recreate the problem and I can test that out.

    July 27th, 2009 @ 04:25 PM

  3. Charles Brunet
    Charles Brunet

    I saw the problem in nav/list, nav/common and nav/sitemap.

    It still doesn't work with your fix. With vac/common, it gives something like

    • A
    • B
      • a
      • b
      • a
      • b
    • C

    • A

    • B
      • a
        • 1
        • 2
      • b
    • C

    • A

    • B
      • a
        • 1
          • i
          • ii
          • i
          • ii
        • 2
    • C

    July 27th, 2009 @ 05:01 PM

  4. Charles Brunet
    Charles Brunet

    Oups, it isn't obvious, bt there are 3 examples in the preceding post. The first and the third are with items doubled.

    July 27th, 2009 @ 05:02 PM

  5. lux
    lux
    • State changed from open to resolved

    This commit I just made seems to correct it without sacrificing the fix the other commit was for.

    http://github.com/lux/sitellite/commit/2fa4707100132c513c2facc7f51c...

    August 4th, 2009 @ 02:24 PM

  6. Charles Brunet
    Charles Brunet
    • State changed from resolved to open

    I tested it, and now, list and common nav boxes only show the 2 first levels of menus. I cannot see level 3 menus and more...

    August 4th, 2009 @ 02:48 PM

  7. Charles Brunet
  8. lux
    lux
    • State changed from open to resolved
    • Milestone order changed from 0 to 0

    I believe this is fixed. I can't seem to get it to show duplicates, and list, common and sitemap nav boxes show me 5+ levels in testing.

    October 18th, 2010 @ 10:09 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.